summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-04 12:22:20 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-04 12:22:20 -0500
commita3650701d1f87100b6ab41cb120f7923eb851a33 (patch)
tree1c3d9ebab6f6ddb2f1a7a9dc0b22ab3861807d34
parent90138539bce046fa8746c326841d2fc7e4e8c20d (diff)
downloadroux-a3650701d1f87100b6ab41cb120f7923eb851a33.tar.gz
fix super old bug in rega!
-rw-r--r--lisc/rega.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisc/rega.c b/lisc/rega.c
index 6c9ab95..a36609e 100644
--- a/lisc/rega.c
+++ b/lisc/rega.c
@@ -285,7 +285,7 @@ dopm(Blk *b, Ins *i, RMap *m)
 	} while (i != b->ins && regcpy(i-1));
 	assert(m0.n <= m->n);
 	if (i != b->ins && (i-1)->op == OCall) {
-		def = calldef(*i, 0);
+		def = calldef(*(i-1), 0);
 		for (r=0; r<NRSave; r++)
 			if (!(BIT(rsave[r]) & def))
 				move(rsave[r], R, m);