Index: src/wasm/asm-wasm-builder.cc |
diff --git a/src/wasm/asm-wasm-builder.cc b/src/wasm/asm-wasm-builder.cc |
index 1d5e674e1c8b59e8c23e0ab8dcbccc847da92c51..691cc374694e0773ac4791b7c0b145698c0d9fc7 100644 |
--- a/src/wasm/asm-wasm-builder.cc |
+++ b/src/wasm/asm-wasm-builder.cc |
@@ -782,9 +782,11 @@ class AsmWasmBuilderImpl : public AstVisitor { |
enum ConvertOperation { kNone, kAsIs, kToInt, kToDouble }; |
ConvertOperation MatchOr(BinaryOperation* expr) { |
- if (MatchIntBinaryOperation(expr, Token::BIT_OR, 0)) { |
- return (TypeOf(expr->left()) == kAstI32) ? kAsIs : kToInt; |
+ if (MatchIntBinaryOperation(expr, Token::BIT_OR, 0) && |
+ (TypeOf(expr->left()) == kAstI32)) { |
+ return kAsIs; |
} else { |
+ UNREACHABLE(); |
return kNone; |
} |
} |