diff gen/abi.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 dc608dc33081
children 34f2fd925de3
line wrap: on
line diff
--- a/gen/abi.cpp	Wed May 13 18:08:40 2009 +0200
+++ b/gen/abi.cpp	Thu May 14 13:26:40 2009 +0200
@@ -112,7 +112,7 @@
     LLValue* get(Type* dty, DValue* dv)
     {
         Logger::println("rewriting int -> struct");
-        LLValue* mem = DtoAlloca(DtoType(dty), ".int_to_struct");
+        LLValue* mem = DtoAlloca(dty, ".int_to_struct");
         LLValue* v = dv->getRVal();
         DtoStore(v, DtoBitCast(mem, getPtrToType(v->getType())));
         return DtoLoad(mem);