Same fix for align size of void type on D2.

This commit is contained in:
Tomas Lindquist Olsen
2009-03-01 01:34:20 +01:00
parent c3504e59f3
commit 1ba0dc70f1

View File

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