aboutsummaryrefslogtreecommitdiffhomepage
path: root/regalloc.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-12 19:16:39 +0200
committerlemon <lsof@mailbox.org>2023-06-12 19:16:39 +0200
commit106fe60243bd61d017d28795f6eba68fecc981b4 (patch)
tree7fbb5c1a84346af8243630cb6c0057ab9b475978 /regalloc.c
parent6df4f80c99609162ad3e46bfdce46d0c10696a45 (diff)
dec,inc,sub
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;
}
}
}