diff --git a/gen/classes.cpp b/gen/classes.cpp index af41debc..704a2be8 100644 --- a/gen/classes.cpp +++ b/gen/classes.cpp @@ -107,7 +107,7 @@ DValue* DtoNewClass(Loc loc, TypeClass* tc, NewExp* newexp) else { llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_newclass"); - LLConstant* ci = DtoBitCast(tc->sym->ir.irAggr->getClassInfoSymbol(), DtoType(ClassDeclaration::classinfo->type)); + LLConstant* ci = DtoBitCast(tc->sym->ir.irAggr->getClassInfoSymbol(), DtoType(Type::typeinfoclass->type)); mem = gIR->CreateCallOrInvoke(fn, ci, ".newclass_gc_alloc").getInstruction(); mem = DtoBitCast(mem, DtoType(tc), ".newclass_gc"); }