mirror of
git://c9x.me/qbe.git
synced 2026-04-06 18:39:48 +00:00
fix bug in alignment constraints of spill slots
This commit is contained in:
parent
6f09869ea1
commit
e9bb9e586b
@ -171,9 +171,9 @@ slot(int t)
|
|||||||
s = tmp[t].spill;
|
s = tmp[t].spill;
|
||||||
if (!s) {
|
if (!s) {
|
||||||
if (tmp[t].type == TWord)
|
if (tmp[t].type == TWord)
|
||||||
s = slota(1, 1, svec);
|
s = slota(1, 0, svec);
|
||||||
else if (tmp[t].type == TLong)
|
else if (tmp[t].type == TLong)
|
||||||
s = slota(2, 2, svec);
|
s = slota(2, 1, svec);
|
||||||
else
|
else
|
||||||
diag("spill: unknown type (1)");
|
diag("spill: unknown type (1)");
|
||||||
tmp[t].spill = s;
|
tmp[t].spill = s;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user