mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-21 23:33:13 +01:00
Adjust _d_assert_msg return type.
This commit is contained in:
committed by
Kai Nacke
parent
2b800b8732
commit
82c202bb60
@@ -314,11 +314,11 @@ static void LLVM_D_BuildRuntimeModule()
|
||||
llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname2, M);
|
||||
}
|
||||
|
||||
// void _d_assert_msg( char[] msg, char[] file, uint line )
|
||||
// void _d_assert_msg(string msg, string file, uint line)
|
||||
{
|
||||
llvm::StringRef fname("_d_assert_msg");
|
||||
LLType *types[] = { stringTy, stringTy, intTy };
|
||||
LLFunctionType* fty = llvm::FunctionType::get(voidPtrTy, types, false);
|
||||
LLFunctionType* fty = llvm::FunctionType::get(voidTy, types, false);
|
||||
llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user