Mercurial > projects > ldc
changeset 1373:551b01341728
Remove an incorrect attribute: `noalias` doesn't apply to struct types, even if
we prefer to think of that type as an array :(.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 17 May 2009 02:22:21 +0200 |
parents | 229e02867307 |
children | e630ff79e10d |
files | gen/runtime.cpp |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/runtime.cpp Sun May 17 00:15:25 2009 +0200 +++ b/gen/runtime.cpp Sun May 17 02:22:21 2009 +0200 @@ -592,8 +592,7 @@ types.push_back(typeInfoTy); types.push_back(rt_array(byteTy)); const llvm::FunctionType* fty = llvm::FunctionType::get(rt_array(byteTy), types, false); - llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M) - ->setAttributes(Attr_NoAlias); + llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M); } // int _adEq(void[] a1, void[] a2, TypeInfo ti)