summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lisc/spill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisc/spill.c b/lisc/spill.c
index ea89fd9..b12522b 100644
--- a/lisc/spill.c
+++ b/lisc/spill.c
@@ -362,7 +362,7 @@ spill(Fn *fn)
 		BSET(mask[k], t);
 	}
 
-	for (bp=&fn->rpo[fn->nblk-1]; bp!=fn->rpo;) {
+	for (bp=&fn->rpo[fn->nblk]; bp!=fn->rpo;) {
 		b = *--bp;
 		/* invariant: all bocks with bigger rpo got
 		 * their in,out updated. */