summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-22 15:14:21 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-22 15:14:28 -0500
commitb75c211dbfa47f5439ebd4b02e90e4db40b3f15a (patch)
treeda515ff04ebe13741e868ad03c56783cedd4d423
parentb7b430e5783e0aabf3001ee0bd664e289b91156e (diff)
downloadroux-b75c211dbfa47f5439ebd4b02e90e4db40b3f15a.tar.gz
fix buggy name changes in isel
-rw-r--r--lisc/isel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisc/isel.c b/lisc/isel.c
index 1f0df4e..290ce95 100644
--- a/lisc/isel.c
+++ b/lisc/isel.c
@@ -678,9 +678,9 @@ selpar(Fn *fn, Ins *i0, Ins *i1)
 			a->cls[0] = r.val;
 			if (a->size > 8) {
 				r1 = rarg(a->cls[1], &ni, &ns);
-				r1 = newtmp("isel", fn);
+				r = newtmp("isel", fn);
 				*curi++ = (Ins){OCopy, r, {r1}, Kl};
-				a->cls[1] = r1.val;
+				a->cls[1] = r.val;
 			}
 		} else
 			*curi++ = (Ins){OCopy, i->to, {r1}, i->cls};