changeset 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 ad41053c336e
children dd84ec4353ce
files gen/runtime.cpp
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
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)