qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit b75c211dbfa47f5439ebd4b02e90e4db40b3f15a
parent b7b430e5783e0aabf3001ee0bd664e289b91156e
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Mon, 22 Feb 2016 15:14:21 -0500

fix buggy name changes in isel

Diffstat:
Mlisc/isel.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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};