diff gen/arrays.cpp @ 1148:3d1b16dabd25

Eliminated the need for resolve, declare, const-init and define lists to drive code generation.
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Fri, 27 Mar 2009 21:50:32 +0100
parents 8c73ff5f69e0
children d51b5fa41657
line wrap: on
line diff
--- a/gen/arrays.cpp	Fri Mar 27 17:54:27 2009 +0100
+++ b/gen/arrays.cpp	Fri Mar 27 21:50:32 2009 +0100
@@ -676,7 +676,7 @@
         Type* t = l->getType();
         LLValue* tival = DtoTypeInfoOf(t);
         // DtoTypeInfoOf only does declare, not enough in this case :/
-        DtoForceConstInitDsymbol(t->vtinfo);
+        t->vtinfo->codegen(Type::sir);
 
         if (Logger::enabled())
             Logger::cout() << "typeinfo decl: " << *tival << '\n';