From 3572944b903bdfd365792243a2f63b0806af76f1 Mon Sep 17 00:00:00 2001 From: Frits van Bommel Date: Sun, 3 May 2009 15:24:05 +0200 Subject: [PATCH] Remove bogus noalias attribute from _d_arraysetlength[i]T. --- gen/runtime.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/gen/runtime.cpp b/gen/runtime.cpp index 5a8ed23b..2647abdc 100644 --- a/gen/runtime.cpp +++ b/gen/runtime.cpp @@ -314,13 +314,8 @@ static void LLVM_D_BuildRuntimeModule() 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)