summary refs log tree commit diff
path: root/minic
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-08 10:36:02 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-11-08 10:36:48 -0500
commitfbf74646e1c2bd1a7b9def14b9d3e7f304a69e35 (patch)
treef4bf579b76425df4829e7e5c68a9f2081f2f6474 /minic
parent5e0c991af9052f74dfa7e31864d4b9914977ba8c (diff)
downloadroux-fbf74646e1c2bd1a7b9def14b9d3e7f304a69e35.tar.gz
uniformize temporary names in minic
Diffstat (limited to 'minic')
-rw-r--r--minic/minic.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/minic/minic.y b/minic/minic.y
index 6c9d69d..b335f68 100644
--- a/minic/minic.y
+++ b/minic/minic.y
@@ -709,7 +709,7 @@ prot: IDENT '(' par0 ')'
 		for (;;) {
 			s = varget(n->u.v);
 			fprintf(of, "%c ", irtyp(s->ctyp));
-			fprintf(of, "%%tmp%d", tmp++);
+			fprintf(of, "%%t%d", tmp++);
 			n = n->r;
 			if (n)
 				fprintf(of, ", ");
@@ -722,7 +722,7 @@ prot: IDENT '(' par0 ')'
 		s = varget(n->u.v);
 		m = SIZE(s->ctyp);
 		fprintf(of, "\t%%%s =l alloc%d %d\n", n->u.v, m, m);
-		fprintf(of, "\tstore%c %%tmp%d", irtyp(s->ctyp), t);
+		fprintf(of, "\tstore%c %%t%d", irtyp(s->ctyp), t);
 		fprintf(of, ", %%%s\n", n->u.v);
 	}
 };