mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
simplify constant handling in amatch()
This commit is contained in:
parent
fb1c02657b
commit
d272f0896b
@ -713,10 +713,7 @@ amatch(Addr *a, Ref r, ANum *ai, Fn *fn, int top)
|
||||
if (top)
|
||||
memset(a, 0, sizeof *a);
|
||||
if (rtype(r) == RCon) {
|
||||
if (top)
|
||||
a->base = r;
|
||||
else
|
||||
addcon(&a->offset, &fn->con[r.val]);
|
||||
addcon(&a->offset, &fn->con[r.val]);
|
||||
return;
|
||||
}
|
||||
assert(rtype(r) == RTmp);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user