comparison dmd2/mtype.c @ 1015:799dbdf9c461

Same fix for align size of void type on D2.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sun, 01 Mar 2009 01:34:20 +0100
parents 010b8b67de1a
children 964af20461a9
comparison
equal deleted inserted replaced
1014:47f8b54f90b3 1015:799dbdf9c461
1230 return size; 1230 return size;
1231 } 1231 }
1232 1232
1233 unsigned TypeBasic::alignsize() 1233 unsigned TypeBasic::alignsize()
1234 { 1234 {
1235 if (ty == Tvoid)
1236 return 1;
1235 return getABITypeAlign(DtoType(this)); 1237 return getABITypeAlign(DtoType(this));
1236 } 1238 }
1237 1239
1238 1240
1239 Expression *TypeBasic::getProperty(Loc loc, Identifier *ident) 1241 Expression *TypeBasic::getProperty(Loc loc, Identifier *ident)