aboutsummaryrefslogtreecommitdiffhomepage
path: root/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'x86_64')
-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 8a845ef..90217d5 100644
--- a/x86_64/isel.c
+++ b/x86_64/isel.c
@@ -90,7 +90,7 @@ fixarg(union ref *r, struct instr *ins, struct block *blk, int *curi)
}
if (docopy)
*r = insertinstr(blk, (*curi)++, mkinstr(Ocopy, con->cls, *r));
- } else if (ins->op != Omove && con->issym && r == &ins->r) {
+ } else if (op != Omove && con->issym && ins && r == &ins->r) {
*r = insertinstr(blk, (*curi)++, mkinstr(Ocopy, KPTR, mkaddr((struct addr){*r})));
} else if (in_range(op, Odiv, Ourem) && kisint(ins->cls))
goto DivImm;