1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

YJIT: fix a #[warn(unused_parens)]

This commit is contained in:
Alan Wu 2022-10-19 14:43:36 -04:00
parent 0aaa6133ed
commit 9da0d4ca9d

View file

@ -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
}
}