Mercurial > projects > ldc
diff gen/runtime.cpp @ 1293:00b408a5b7fa
Remove bogus noalias attribute from _d_arraysetlength[i]T.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 03 May 2009 15:24:05 +0200 |
parents | 6bd5ce91b136 |
children | 329e45865d84 |
line wrap: on
line diff
--- a/gen/runtime.cpp Sun May 03 11:16:54 2009 +0200 +++ b/gen/runtime.cpp Sun May 03 15:24:05 2009 +0200 @@ -314,13 +314,8 @@ types.push_back(sizeTy); types.push_back(voidPtrTy); const llvm::FunctionType* fty = llvm::FunctionType::get(voidPtrTy, types, false); - - // ReadOnly is not technically true, but close enough: It only writes - // to memory the caller doesn't know about. - llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M) - ->setAttributes(Attr_NoAlias); - llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname2, M) - ->setAttributes(Attr_NoAlias); + llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M); + llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname2, M); } // Object _d_allocclass(ClassInfo ci)