Skip to content

Commit b8029d5

Browse files
committed
account for bit-{and,or,xor} in try_fuse_branch_cmp debug_assert
1 parent 072e2b7 commit b8029d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/wasmi/src/engine/translator/func2

crates/wasmi/src/engine/translator/func2/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ impl FuncTranslator {
894894
let Operand::Temp(condition) = condition else {
895895
return Ok(false);
896896
};
897-
debug_assert_eq!(condition.ty(), ValType::I32);
897+
debug_assert!(matches!(condition.ty(), ValType::I32 | ValType::I64));
898898
let Some(origin) = condition.instr() else {
899899
return Ok(false);
900900
};

0 commit comments

Comments
 (0)