mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-20 12:20:19 +02:00
[svn r145] fixed some x86 problems
This commit is contained in:
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user