summary refs log tree commit diff
path: root/lisc/spill.c
diff options
context:
space:
mode:
Diffstat (limited to 'lisc/spill.c')
-rw-r--r--lisc/spill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisc/spill.c b/lisc/spill.c
index ad105e1..b09c696 100644
--- a/lisc/spill.c
+++ b/lisc/spill.c
@@ -94,7 +94,8 @@ fillcost(Fn *fn)
 			symuse(p->to, 0, 0, fn);
 			for (a=0; a<p->narg; a++) {
 				n = p->blk[a]->loop;
-				assert(b->npred && "invalid cfg");
+				assert(b->npred==p->narg &&
+					"wrong cfg");
 				n /= b->npred;
 				symuse(p->arg[a], 1, n, fn);
 			}