summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-24 12:53:08 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-24 12:53:08 -0500
commit01a8102c3d46732e9cc1a6974551ed4e12f7e173 (patch)
tree8a007123aeb0e787dcf12105a4f780eddcb78d39
parentebaec26046c54995f597d2043e2d3b3a3413bc18 (diff)
downloadroux-01a8102c3d46732e9cc1a6974551ed4e12f7e173.tar.gz
use default use/def counts in newtmp()
This is paliative, before I check that all use
counts in isel.c are correct.
-rw-r--r--lisc/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisc/util.c b/lisc/util.c
index 4bbb4bd..4cacb11 100644
--- a/lisc/util.c
+++ b/lisc/util.c
@@ -200,6 +200,8 @@ newtmp(char *prfx, Fn *fn)
 	vgrow(&fn->tmp, fn->ntmp);
 	sprintf(fn->tmp[t].name, "%s%d", prfx, ++n);
 	fn->tmp[t].slot = -1;
+	fn->tmp[t].nuse = +1;
+	fn->tmp[t].ndef = +1;
 	return TMP(t);
 }