comparison gen/runtime.cpp @ 1373:551b01341728

Remove an incorrect attribute: `noalias` doesn't apply to struct types, even if we prefer to think of that type as an array :(.
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 17 May 2009 02:22:21 +0200
parents c78fd2d30da1
children f5f8c21ce6ef
comparison
equal deleted inserted replaced
1372:229e02867307 1373:551b01341728
590 std::string fname("_adDupT"); 590 std::string fname("_adDupT");
591 std::vector<const LLType*> types; 591 std::vector<const LLType*> types;
592 types.push_back(typeInfoTy); 592 types.push_back(typeInfoTy);
593 types.push_back(rt_array(byteTy)); 593 types.push_back(rt_array(byteTy));
594 const llvm::FunctionType* fty = llvm::FunctionType::get(rt_array(byteTy), types, false); 594 const llvm::FunctionType* fty = llvm::FunctionType::get(rt_array(byteTy), types, false);
595 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M) 595 llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M);
596 ->setAttributes(Attr_NoAlias);
597 } 596 }
598 597
599 // int _adEq(void[] a1, void[] a2, TypeInfo ti) 598 // int _adEq(void[] a1, void[] a2, TypeInfo ti)
600 // int _adCmp(void[] a1, void[] a2, TypeInfo ti) 599 // int _adCmp(void[] a1, void[] a2, TypeInfo ti)
601 { 600 {