aboutsummaryrefslogtreecommitdiffhomepage
path: root/c
diff options
context:
space:
mode:
Diffstat (limited to 'c')
-rw-r--r--c/c.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/c/c.c b/c/c.c
index 5ba6c2e..6ae7ee7 100644
--- a/c/c.c
+++ b/c/c.c
@@ -3712,7 +3712,12 @@ stmt(struct comp *cm, struct function *fn)
putbranch(fn, begin);
freearena(&atmpp);
} else if (!terminates) putbranch(fn, begin);
- useblk(fn, fl);
+ if (fl->npred > 0) {
+ useblk(fn, fl);
+ } else {
+ freeblk(fn, fl);
+ terminates = 1;
+ }
}
envup(cm);
break;