diff gen/abi-x86-64.cpp @ 1350:15e9762bb620

Adds explicit alignment information for alloca instructions in general, there's a few cases that still needs to be looked at but this should catch the majority. Fixes ticket #293 .
author Tomas Lindquist Olsen <tomas.l.olsen gmail com>
date Thu, 14 May 2009 13:26:40 +0200
parents f3b92d26ad0f
children 45aca7e7cc88
line wrap: on
line diff
--- a/gen/abi-x86-64.cpp	Wed May 13 18:08:40 2009 +0200
+++ b/gen/abi-x86-64.cpp	Thu May 14 13:26:40 2009 +0200
@@ -455,7 +455,7 @@
         } else {
             // No memory location, create one.
             LLValue* rval = v->getRVal();
-            lval = DtoAlloca(rval->getType());
+            lval = DtoRawAlloca(rval->getType(), 0);
             DtoStore(rval, lval);
         }
         
@@ -479,7 +479,7 @@
         } else {
             // No memory location, create one.
             LLValue* rval = v->getRVal();
-            lval = DtoAlloca(rval->getType());
+            lval = DtoRawAlloca(rval->getType(), 0);
             DtoStore(rval, lval);
         }