diff gen/classes.cpp @ 728:635f91212b78

Change _d_newclass into _d_allocclass. Add initialization to ClassInfo.create.
author Christian Kamm <kamm incasoftware de>
date Sun, 26 Oct 2008 14:12:03 +0100
parents 5a2983f97498
children 041c1596d217
line wrap: on
line diff
--- a/gen/classes.cpp	Sun Oct 26 14:11:14 2008 +0100
+++ b/gen/classes.cpp	Sun Oct 26 14:12:03 2008 +0100
@@ -812,7 +812,7 @@
     // default allocator
     else
     {
-        llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_newclass");
+        llvm::Function* fn = LLVM_D_GetRuntimeFunction(gIR->module, "_d_allocclass");
         mem = gIR->CreateCallOrInvoke(fn, tc->sym->ir.irStruct->classInfo, ".newclass_gc_alloc")->get();
         mem = DtoBitCast(mem, DtoType(tc), ".newclass_gc");
     }