Index: src/asmjs/asm-wasm-builder.cc |
diff --git a/src/asmjs/asm-wasm-builder.cc b/src/asmjs/asm-wasm-builder.cc |
index f928ae1b97e4bcdbe9e9785f16a181d0a281e50f..dea0f295101140261020b84d9220dae30e7b96a0 100644 |
--- a/src/asmjs/asm-wasm-builder.cc |
+++ b/src/asmjs/asm-wasm-builder.cc |
@@ -1513,8 +1513,8 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> { |
if (expr->op() == op && expr->right()->IsLiteral() && |
TypeOf(expr) == kAstI32) { |
Literal* right = expr->right()->AsLiteral(); |
- DCHECK(right->raw_value()->IsNumber()); |
- if (static_cast<int32_t>(right->raw_value()->AsNumber()) == val) { |
+ if (right->raw_value()->IsNumber() && |
+ static_cast<int32_t>(right->raw_value()->AsNumber()) == val) { |
return true; |
} |
} |