# HG changeset patch # User Frits van Bommel # Date 1242519741 -7200 # Node ID 551b01341728d5a1f8bd7b73382d3abf23ea939f # Parent 229e02867307c58dd0871bb9d3f3dc92956ba9fc Remove an incorrect attribute: `noalias` doesn't apply to struct types, even if we prefer to think of that type as an array :(. diff -r 229e02867307 -r 551b01341728 gen/runtime.cpp --- a/gen/runtime.cpp Sun May 17 00:15:25 2009 +0200 +++ b/gen/runtime.cpp Sun May 17 02:22:21 2009 +0200 @@ -592,8 +592,7 @@ 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)