mirror of
git://c9x.me/qbe.git
synced 2026-04-06 18:39:48 +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)
|
if (top)
|
||||||
memset(a, 0, sizeof *a);
|
memset(a, 0, sizeof *a);
|
||||||
if (rtype(r) == RCon) {
|
if (rtype(r) == RCon) {
|
||||||
if (top)
|
addcon(&a->offset, &fn->con[r.val]);
|
||||||
a->base = r;
|
|
||||||
else
|
|
||||||
addcon(&a->offset, &fn->con[r.val]);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
assert(rtype(r) == RTmp);
|
assert(rtype(r) == RTmp);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user