diff --git a/crates/wasmtime/src/runtime/vm/interpreter.rs b/crates/wasmtime/src/runtime/vm/interpreter.rs index 2fa2e6b07b24..dfb353ef13c1 100644 --- a/crates/wasmtime/src/runtime/vm/interpreter.rs +++ b/crates/wasmtime/src/runtime/vm/interpreter.rs @@ -141,15 +141,7 @@ impl InterpreterRef<'_> { s.set_jit_trap(regs, None, trap); } None => { - let result = s.test_if_trap( - TrapRegisters { - pc: pc.as_ptr() as usize, - fp: self.0[XReg::fp].get_ptr::() as usize, - }, - None, - |_| false, - ); - match result { + match s.test_if_trap(regs, None, |_| false) { // This shouldn't be possible, so this is a fatal error // if it happens. TrapTest::NotWasm => {