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:
Tomas Lindquist Olsen
2009-05-14 13:26:40 +02:00
parent 5694ec18ff
commit f5d635dfc7
16 changed files with 61 additions and 44 deletions
+2 -2
View File
@@ -455,7 +455,7 @@ struct X86_64_C_struct_rewrite : ABIRewrite {
} 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 @@ struct X86_64_C_struct_rewrite : ABIRewrite {
} else {
// No memory location, create one.
LLValue* rval = v->getRVal();
lval = DtoAlloca(rval->getType());
lval = DtoRawAlloca(rval->getType(), 0);
DtoStore(rval, lval);
}