mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
fix two bad bugs in abi classification
The conditions to put a struct in memory or not were wrong. And I misused the cls field of the AClass struct.
This commit is contained in:
parent
53efd935d7
commit
005c7e7c5e
@ -530,11 +530,11 @@ classify(Ins *i0, Ins *i1, AClass *ac, int op)
|
||||
continue;
|
||||
ni = ns = 0;
|
||||
for (n=0; n<2; n++)
|
||||
if (a->cls[n] == 0)
|
||||
if (KBASE(a->cls[n]) == 0)
|
||||
ni++;
|
||||
else
|
||||
ns++;
|
||||
if (nint > ni && nsse > ns) {
|
||||
if (nint >= ni && nsse >= ns) {
|
||||
nint -= ni;
|
||||
nsse -= ns;
|
||||
} else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user