diff ir/irstruct.cpp @ 1366:81121ac19f61

Fixed previous aggregate initZ alignment. Added missing IrType::isDelegate method.
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Sat, 16 May 2009 18:37:16 +0200
parents 65505c9d70f5
children ad7f2f1862d6
line wrap: on
line diff
--- a/ir/irstruct.cpp	Sat May 16 18:25:01 2009 +0200
+++ b/ir/irstruct.cpp	Sat May 16 18:37:16 2009 +0200
@@ -61,7 +61,7 @@
         init_pa.get(), true, _linkage, NULL, initname, gIR->module);
 
     // set alignment
-    init->setAlignment(aggrdecl->alignsize);
+    init->setAlignment(type->alignsize());
 
     return init;
 }