Remove bogus noalias attribute from _d_arraysetlength[i]T.

This commit is contained in:
Frits van Bommel
2009-05-03 15:24:05 +02:00
parent 77100f890c
commit 3572944b90

View File

@@ -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)