mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
fix dumb bug found by Andrew Chambers
This commit is contained in:
parent
7d203e7f99
commit
70d73e2d6e
@ -29,8 +29,9 @@ memopt(Fn *fn)
|
||||
if (u->type != UIns)
|
||||
goto NextIns;
|
||||
l = u->u.ins;
|
||||
if (l->op < OStorel || l->op > OStoreb)
|
||||
if (l->op < OLoadl || l->op > OLoadub)
|
||||
if (l->op < OStorel || l->op > OStoreb
|
||||
|| req(i->to, l->arg[0]))
|
||||
goto NextIns;
|
||||
}
|
||||
/* get rid of the alloc and replace uses */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user