# HG changeset patch # User Tomas Lindquist Olsen # Date 1242491836 -7200 # Node ID 81121ac19f61d06141fdae42cfe7ae95a25950c3 # Parent 65505c9d70f582bd438e7ff3d7e864553ee4c609 Fixed previous aggregate initZ alignment. Added missing IrType::isDelegate method. diff -r 65505c9d70f5 -r 81121ac19f61 ir/irstruct.cpp --- 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; } diff -r 65505c9d70f5 -r 81121ac19f61 ir/irtype.h --- a/ir/irtype.h Sat May 16 18:25:01 2009 +0200 +++ b/ir/irtype.h Sat May 16 18:37:16 2009 +0200 @@ -13,6 +13,7 @@ class IrTypeArray; class IrTypeBasic; class IrTypeClass; +class IrTypeDelegate; class IrTypeFunction; class IrTypePointer; class IrTypeSArray; @@ -36,6 +37,8 @@ /// virtual IrTypeClass* isClass() { return NULL; } /// + virtual IrTypeDelegate* isDelegate(){ return NULL; } + /// virtual IrTypeFunction* isFunction(){ return NULL; } /// virtual IrTypePointer* isPointer() { return NULL; }