aboutsummaryrefslogtreecommitdiffhomepage
path: root/x86_64/isel.c
diff options
context:
space:
mode:
Diffstat (limited to 'x86_64/isel.c')
-rw-r--r--x86_64/isel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x86_64/isel.c b/x86_64/isel.c
index 2b83093..9c99608 100644
--- a/x86_64/isel.c
+++ b/x86_64/isel.c
@@ -414,7 +414,7 @@ sel(struct function *fn, struct instr *ins, struct block *blk, int *curi)
ins->op = ((op - Olth) ^ 1) + Olth;
rswap(ins->l, ins->r);
}
- if (ins->l.t != RTMP && ins->l.t != RREG)
+ if (ins->l.t != RTMP && ins->l.t != RREG && ins->l.t != RSTACK)
ins->l = insertinstr(blk, (*curi)++, mkinstr(Ocopy, insrescls(*ins), ins->l));
else
fixarg(&ins->l, ins, blk, curi);