Index: src/asmjs/asm-typer.cc |
diff --git a/src/asmjs/asm-typer.cc b/src/asmjs/asm-typer.cc |
index 0c2c69686d0ed84ffa2f5d9ee7500c0f1248318f..85d18269aac5cdfbadff98ef4d93f132487183f6 100644 |
--- a/src/asmjs/asm-typer.cc |
+++ b/src/asmjs/asm-typer.cc |
@@ -2254,12 +2254,12 @@ AsmType* AsmTyper::ValidateBitwiseORExpression(BinaryOperation* binop) { |
RECURSE(type = ValidateCall(AsmType::Signed(), left_as_call)); |
return type; |
} |
- |
- // TODO(jpp): at this point we know that binop is expr|0. We could sinply |
- // |
- // RECURSE(t = ValidateExpression(left)); |
- // FAIL_IF(t->IsNotA(Intish)); |
- // return Signed; |
+ AsmType* left_type; |
+ RECURSE(left_type = ValidateExpression(left)); |
+ if (!left_type->IsA(AsmType::Intish())) { |
+ FAIL(left, "Left side of |0 annotation must be intish."); |
+ } |
+ return AsmType::Signed(); |
} |
auto* right = binop->right(); |