Skip to content

Commit 3f89353

Browse files
committed
ZJIT: Make opnd!() work on both &InsnId and InsnId
1 parent a04555c commit 3f89353

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

zjit/src/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ fn gen_insn(cb: &mut CodeBlock, jit: &mut JITState, asm: &mut Assembler, functio
314314
// Convert InsnId to lir::Opnd
315315
macro_rules! opnd {
316316
($insn_id:ident) => {
317-
jit.get_opnd(*$insn_id)?
317+
jit.get_opnd($insn_id.clone())?
318318
};
319319
}
320320

0 commit comments

Comments
 (0)