diff --git a/lib/wasm/src/code_translator.rs b/lib/wasm/src/code_translator.rs index 76290364f2..e6018a11bb 100644 --- a/lib/wasm/src/code_translator.rs +++ b/lib/wasm/src/code_translator.rs @@ -47,11 +47,12 @@ pub fn translate_operator( environ: &mut FE, ) -> WasmResult<()> { if !state.reachable { - return Ok(translate_unreachable_operator(&op, builder, state)); + translate_unreachable_operator(&op, builder, state); + return Ok(()); } // This big match treats all Wasm code operators. - Ok(match op { + match op { /********************************** Locals **************************************** * `get_local` and `set_local` are treated as non-SSA variables and will completely * disappear in the Cretonne Code @@ -885,7 +886,8 @@ pub fn translate_operator( | Operator::I64AtomicRmw32UCmpxchg { .. } => { return Err(WasmError::Unsupported("proposed thread operators")); } - }) + }; + Ok(()) } // Clippy warns us of some fields we are deliberately ignoring