mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-10-07 00:26:55 +02: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:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user