diff gen/arrays.cpp @ 156:ccd07d9f2ce9 trunk

[svn r172] moving all IR state previously stored in Dsymbol into IrDsymbol and a Dsymbol->IrDsymbol map
author ChristianK
date Thu, 01 May 2008 13:05:53 +0200
parents a27941d00351
children 5c17f81fc1c1
line wrap: on
line diff
--- a/gen/arrays.cpp	Tue Apr 29 21:33:50 2008 +0200
+++ b/gen/arrays.cpp	Thu May 01 13:05:53 2008 +0200
@@ -673,10 +673,10 @@
     if (useti) {
         TypeInfoDeclaration* ti = DtoDType(l->getType())->next->getTypeInfoDeclaration();
         DtoForceConstInitDsymbol(ti);
-        Logger::cout() << "typeinfo decl: " << *ti->getIrValue() << '\n';
+        Logger::cout() << "typeinfo decl: " << *gIR->irDsymbol[ti].getIrValue() << '\n';
 
         pt = fn->getFunctionType()->getParamType(2);
-        args.push_back(DtoBitCast(ti->getIrValue(), pt));
+        args.push_back(DtoBitCast(gIR->irDsymbol[ti].getIrValue(), pt));
     }
 
     return gIR->ir->CreateCall(fn, args.begin(), args.end(), "tmp");