diff 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
line wrap: on
line diff
--- a/dmd2/mtype.c	Sun Mar 01 01:33:08 2009 +0100
+++ b/dmd2/mtype.c	Sun Mar 01 01:34:20 2009 +0100
@@ -1232,6 +1232,8 @@
 
 unsigned TypeBasic::alignsize()
 {
+    if (ty == Tvoid)
+        return 1;
     return getABITypeAlign(DtoType(this));
 }