diff dmd2/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 964af20461a9
children 442ab244c455
line wrap: on
line diff
--- a/dmd2/mtype.c	Tue Mar 03 14:10:37 2009 +0100
+++ b/dmd2/mtype.c	Tue Mar 03 15:08:26 2009 +0100
@@ -4929,6 +4929,9 @@
 	: Type(Tstruct)
 {
     this->sym = sym;
+
+    // LDC
+    this->unaligned = 0;
 }
 
 char *TypeStruct::toChars()