Skip to content

Commit 7f398a3

Browse files
committed
ZJIT: Make opnd!() work on both &InsnId and InsnId
1 parent 26776ee commit 7f398a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zjit/src/codegen.rs

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

0 commit comments

Comments
 (0)