mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 03:13:13 +01: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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user