diff dmd/mtype.c @ 1029:4d366a75d95f

Added hasUnalignedFields helper to check if a type has unaligned fields - as per request from fvbommel. Result is cached in TypeStruct.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 03 Mar 2009 15:08:26 +0100
parents 9167d492cbc2
children dc608dc33081
line wrap: on
line diff
--- a/dmd/mtype.c	Tue Mar 03 14:10:37 2009 +0100
+++ b/dmd/mtype.c	Tue Mar 03 15:08:26 2009 +0100
@@ -4278,6 +4278,9 @@
 	: Type(Tstruct, NULL)
 {
     this->sym = sym;
+
+    // LDC
+    this->unaligned = 0;
 }
 
 char *TypeStruct::toChars()