diff gen/llvmhelpers.cpp @ 435:74101be2a553

Added type param to DVarValue as DMD sometimes overrides the type of the VarDeclaration. Added support for align(1)/packed structs, other alignments are still ignored. Fixed some problems with accessing lazy arguments.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Wed, 30 Jul 2008 10:12:55 +0200
parents b5f55f471e0b
children 47b64d06eb9f
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp	Wed Jul 30 09:21:06 2008 +0200
+++ b/gen/llvmhelpers.cpp	Wed Jul 30 10:12:55 2008 +0200
@@ -1264,7 +1264,7 @@
             DValue* ie = DtoInitializer(vd->init);
         }
 
-        return new DVarValue(vd, vd->ir.getIrValue(), true);
+        return new DVarValue(vd->type, vd, vd->ir.getIrValue(), true);
     }
     // struct declaration
     else if (StructDeclaration* s = declaration->isStructDeclaration())