[svn r145] fixed some x86 problems

This commit is contained in:
Tomas Lindquist Olsen
2008-01-23 12:58:51 +01:00
parent 0c0bac2766
commit f9685eab09
4 changed files with 3 additions and 11 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ static llvm::Function* LLVM_DeclareMemIntrinsic(const char* name, int bits, bool
pvec.push_back(bits==32?int32ty:int64ty);
pvec.push_back(int32ty);
llvm::FunctionType* functype = llvm::FunctionType::get(voidty, pvec, false);
return new llvm::Function(functype, llvm::GlobalValue::ExternalLinkage, name, gIR->module);
return llvm::cast<llvm::Function>(gIR->module->getOrInsertFunction(name, functype));
}
//////////////////////////////////////////////////////////////////////////////////////////