summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-08-05 16:08:23 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:30 -0400
commitdba612623fcd5c58569ef8ac32085e8aacaef435 (patch)
tree287f4bdb0abadb5b6350283d7e609b00a7852c44
parentd673d8fcd2fd479d8cf0a1f6df99686963be73fb (diff)
downloadroux-dba612623fcd5c58569ef8ac32085e8aacaef435.tar.gz
fix limit bug in spill
I think this was not a big issue because the register
allocator does not consume a register when it encounters
obviously dead code.
-rw-r--r--lisc/spill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisc/spill.c b/lisc/spill.c
index c4ca7a8..f963a1b 100644
--- a/lisc/spill.c
+++ b/lisc/spill.c
@@ -357,7 +357,7 @@ spill(Fn *fn)
 				if (BGET(v, j))
 					BCLR(v, j);
 				else
-					v = limit(&v, NReg-1, &w);
+					v = limit(&v, nreg-1, &w);
 				s = tmp[j].spill;
 				break;
 			case RReg: