From b052b3044237c9bb5095d2f34cf17b718b58df9b Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Thu, 24 Oct 2013 00:27:09 +0200 Subject: [PATCH] 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. --- gen/runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/runtime.cpp b/gen/runtime.cpp index 55c74787..60b748f1 100644 --- a/gen/runtime.cpp +++ b/gen/runtime.cpp @@ -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); }