aboutsummaryrefslogtreecommitdiffhomepage
path: root/regalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'regalloc.c')
-rw-r--r--regalloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/regalloc.c b/regalloc.c
index f03c33c..f001fee 100644
--- a/regalloc.c
+++ b/regalloc.c
@@ -219,6 +219,7 @@ regalloc(struct function *fn)
/* an in-place operation where the destination does not
* match the first operand, so we need to add a move */
insertinstr(blk, i, mkmove(ins->cls, ins->reg-1, ins->l.i));
+ ins->l.i = ins->reg-1;
}
}
}