Skip to content

Commit

Permalink
YJIT: fix a #[warn(unused_parens)]
Browse files Browse the repository at this point in the history
  • Loading branch information
XrXr committed Oct 19, 2022
1 parent 0aaa613 commit 9da0d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yjit/src/asm/x86_64/mod.rs
Expand Up @@ -111,7 +111,7 @@ impl X86Opnd {
X86Opnd::Imm(_) => false,
X86Opnd::UImm(_) => false,
X86Opnd::Reg(reg) => reg.reg_no > 7 || reg.num_bits == 8 && reg.reg_no >= 4,
X86Opnd::Mem(mem) => (mem.base_reg_no > 7 || (mem.idx_reg_no.unwrap_or(0) > 7)),
X86Opnd::Mem(mem) => mem.base_reg_no > 7 || (mem.idx_reg_no.unwrap_or(0) > 7),
X86Opnd::IPRel(_) => false
}
}
Expand Down

0 comments on commit 9da0d4c

Please sign in to comment.