mirror of
git://c9x.me/qbe.git
synced 2026-04-07 10:59:47 +00:00
simplify constant handling in amatch()
This commit is contained in:
parent
fb1c02657b
commit
d272f0896b
@ -713,9 +713,6 @@ 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)
|
|
||||||
a->base = r;
|
|
||||||
else
|
|
||||||
addcon(&a->offset, &fn->con[r.val]);
|
addcon(&a->offset, &fn->con[r.val]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user