mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-30 19:43:13 +01:00
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 .
This commit is contained in:
@@ -1025,7 +1025,7 @@ void ForeachStatement::toIR(IRState* p)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user