mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
minor change in rpo walking
This commit is contained in:
parent
75eb0c3224
commit
dcf07ba55c
@ -47,10 +47,10 @@ rporec(Blk *b, int x)
|
||||
if (b->id >= 0)
|
||||
return x;
|
||||
b->id = 1;
|
||||
if (b->s1)
|
||||
x = rporec(b->s1, x);
|
||||
if (b->s2)
|
||||
x = rporec(b->s2, x);
|
||||
if (b->s1)
|
||||
x = rporec(b->s1, x);
|
||||
b->id = x;
|
||||
assert(x >= 0);
|
||||
return x - 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user