robustness fix in fillfron()
This makes it possible to call it several times in a row.
This commit is contained in:
parent
7e1c1f9f77
commit
1a76fd11f5
1 changed files with 2 additions and 0 deletions
2
cfg.c
2
cfg.c
|
@ -219,6 +219,8 @@ fillfron(Fn *fn)
|
||||||
{
|
{
|
||||||
Blk *a, *b;
|
Blk *a, *b;
|
||||||
|
|
||||||
|
for (b=fn->start; b; b=b->link)
|
||||||
|
b->nfron = 0;
|
||||||
for (b=fn->start; b; b=b->link) {
|
for (b=fn->start; b; b=b->link) {
|
||||||
if (b->s1)
|
if (b->s1)
|
||||||
for (a=b; !sdom(a, b->s1); a=a->idom)
|
for (a=b; !sdom(a, b->s1); a=a->idom)
|
||||||
|
|
Loading…
Add table
Reference in a new issue