Remove an incorrect attribute: noalias doesn't apply to struct types, even if

we prefer to think of that type as an array :(.
This commit is contained in:
Frits van Bommel
2009-05-17 02:22:21 +02:00
parent 76ae0b0ab6
commit 371cdb71ba

View File

@@ -592,8 +592,7 @@ static void LLVM_D_BuildRuntimeModule()
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)