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:
David Nadlinger 2013-10-24 00:27:09 +02:00
parent 1f59740524
commit b052b30442

View file

@ -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);
}