Mercurial > projects > ldc
diff gen/aa.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 | f5f8c21ce6ef |
line wrap: on
line diff
--- a/gen/aa.cpp Wed May 13 18:08:40 2009 +0200 +++ b/gen/aa.cpp Thu May 14 13:26:40 2009 +0200 @@ -33,7 +33,7 @@ pkey = key->getRVal(); } else { - LLValue* tmp = DtoAlloca(DtoType(keytype), "aatmpkeystorage"); + LLValue* tmp = DtoAlloca(keytype, "aatmpkeystorage"); DVarValue var(keytype, tmp); DtoAssign(loc, &var, key); return tmp; @@ -41,7 +41,7 @@ // give memory if (needmem) { - LLValue* tmp = DtoAlloca(DtoType(keytype), "aatmpkeystorage"); + LLValue* tmp = DtoAlloca(keytype, "aatmpkeystorage"); DtoStore(pkey, tmp); pkey = tmp; }