summaryrefslogtreecommitdiff
path: root/yjit/src/asm/arm64/inst/halfword_imm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'yjit/src/asm/arm64/inst/halfword_imm.rs')
-rw-r--r--yjit/src/asm/arm64/inst/halfword_imm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/asm/arm64/inst/halfword_imm.rs b/yjit/src/asm/arm64/inst/halfword_imm.rs
index c31d1f8945..0ddae8e8de 100644
--- a/yjit/src/asm/arm64/inst/halfword_imm.rs
+++ b/yjit/src/asm/arm64/inst/halfword_imm.rs
@@ -95,7 +95,7 @@ const FAMILY: u32 = 0b111100;
impl From<HalfwordImm> for u32 {
/// Convert an instruction into a 32-bit value.
fn from(inst: HalfwordImm) -> Self {
- let (mut opc, imm) = match inst.index {
+ let (opc, imm) = match inst.index {
Index::None => {
assert_eq!(inst.imm & 1, 0, "immediate offset must be even");
let imm12 = truncate_imm::<_, 12>(inst.imm / 2);