mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 01:20:51 +03:00
Correct signature of _d_newclass runtime call.
Fixes programs trying to directly access it (e.g. the GtkD bindings). Not sure why this didn't come up earlier.
This commit is contained in:
parent
1f59740524
commit
b052b30442
1 changed files with 1 additions and 1 deletions
|
@ -430,7 +430,7 @@ static void LLVM_D_BuildRuntimeModule()
|
|||
{
|
||||
llvm::StringRef fname("_d_newclass");
|
||||
LLType *types[] = { classInfoTy };
|
||||
LLFunctionType* fty = llvm::FunctionType::get(voidPtrTy, types, false);
|
||||
LLFunctionType* fty = llvm::FunctionType::get(objectTy, types, false);
|
||||
llvm::Function::Create(fty, llvm::GlobalValue::ExternalLinkage, fname, M)
|
||||
->setAttributes(Attr_NoAlias);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue