diff gen/arrays.cpp @ 136:0e28624814e8 trunk

[svn r140] did a lot of the work towards being able to pass multiple modules on the command line. not complete yet though
author lindquist
date Thu, 17 Jan 2008 03:15:12 +0100
parents 44a95ac7368a
children a27941d00351
line wrap: on
line diff
--- a/gen/arrays.cpp	Mon Jan 14 23:09:55 2008 +0100
+++ b/gen/arrays.cpp	Thu Jan 17 03:15:12 2008 +0100
@@ -671,13 +671,11 @@
     // pass element typeinfo ?
     if (useti) {
         TypeInfoDeclaration* ti = DtoDType(l->getType())->next->getTypeInfoDeclaration();
-        if (!ti->llvmValue) {
-            DtoForceConstInitDsymbol(ti);
-        }
-        Logger::cout() << "typeinfo decl: " << *ti->llvmValue << '\n';
+        DtoForceConstInitDsymbol(ti);
+        Logger::cout() << "typeinfo decl: " << *ti->getIrValue() << '\n';
 
         pt = fn->getFunctionType()->getParamType(2);
-        args.push_back(DtoBitCast(ti->llvmValue, pt));
+        args.push_back(DtoBitCast(ti->getIrValue(), pt));
     }
 
     return gIR->ir->CreateCall(fn, args.begin(), args.end(), "tmp");