commit 1a76fd11f501d0bf762e01661d8a67c18c3e01bd
parent 7e1c1f9f779aa4d55c3cbc9e16a9f8f2884dd3fe
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Mon, 6 Feb 2017 14:37:43 -0500
robustness fix in fillfron()
This makes it possible to call it several times in a row.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/cfg.c b/cfg.c
@@ -219,6 +219,8 @@ fillfron(Fn *fn)
{
Blk *a, *b;
+ for (b=fn->start; b; b=b->link)
+ b->nfron = 0;
for (b=fn->start; b; b=b->link) {
if (b->s1)
for (a=b; !sdom(a, b->s1); a=a->idom)