summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2025-07-22 19:11:18 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2025-08-15 20:11:23 -0400
commit7f398a38e37c109babde89475a75b51308044f4d (patch)
treee0ba8dcb22b045b6991785e2e54b532ef0a0b8a3
parent26776ee91ab6045cc43c11b8022651572ad01e4c (diff)
ZJIT: Make `opnd!()` work on both `&InsnId` and `InsnId`
-rw-r--r--zjit/src/codegen.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/zjit/src/codegen.rs b/zjit/src/codegen.rs
index cba25f9cdb..50ca8fbdbd 100644
--- a/zjit/src/codegen.rs
+++ b/zjit/src/codegen.rs
@@ -313,7 +313,7 @@ fn gen_insn(cb: &mut CodeBlock, jit: &mut JITState, asm: &mut Assembler, functio
// Convert InsnId to lir::Opnd
macro_rules! opnd {
($insn_id:ident) => {
- jit.get_opnd(*$insn_id)?
+ jit.get_opnd($insn_id.clone())?
};
}