Fixed alignsize for void types. (it's one byte)

This commit is contained in:
Tomas Lindquist Olsen
2009-03-01 01:33:08 +01:00
parent dd41366a99
commit c3504e59f3

View File

@@ -1002,6 +1002,8 @@ d_uns64 TypeBasic::size(Loc loc)
unsigned TypeBasic::alignsize()
{
if (ty == Tvoid)
return 1;
return getABITypeAlign(DtoType(this));
}