Mercurial > projects > ldc
diff gen/statements.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 | 0686701178d3 |
children | 3f5ea912149d |
line wrap: on
line diff
--- a/gen/statements.cpp Wed May 13 18:08:40 2009 +0200 +++ b/gen/statements.cpp Thu May 14 13:26:40 2009 +0200 @@ -1025,7 +1025,7 @@ if (key) keyvar = DtoRawVarDeclaration(key); else - keyvar = DtoAlloca(keytype, "foreachkey"); + keyvar = DtoRawAlloca(keytype, 0, "foreachkey"); // FIXME: align? LLValue* zerokey = llvm::ConstantInt::get(keytype,0,false); // value