diff --git a/cranelift/interpreter/src/step.rs b/cranelift/interpreter/src/step.rs index 87c86409de5d..8860c924e25a 100644 --- a/cranelift/interpreter/src/step.rs +++ b/cranelift/interpreter/src/step.rs @@ -423,7 +423,8 @@ where } Opcode::GetPinnedReg => assign(state.get_pinned_reg()), Opcode::SetPinnedReg => { - state.set_pinned_reg(arg(0)?); + let arg0 = arg(0)?; + state.set_pinned_reg(arg0); ControlFlow::Continue } Opcode::TableAddr => {