From 1a76fd11f501d0bf762e01661d8a67c18c3e01bd Mon Sep 17 00:00:00 2001
From: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Mon, 6 Feb 2017 14:37:43 -0500
Subject: [PATCH] robustness fix in fillfron()

This makes it possible to call it several times in a row.
---
 cfg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cfg.c b/cfg.c
index 3b0c5bb..5385811 100644
--- 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)