| Index: src/compiler/verifier.cc
|
| diff --git a/src/compiler/verifier.cc b/src/compiler/verifier.cc
|
| index 7672ac593a15ac78f8c77a3ea7c40a6bf4bafc46..90b3f133bea2f79aec2fcd2a4e792683deb726c5 100644
|
| --- a/src/compiler/verifier.cc
|
| +++ b/src/compiler/verifier.cc
|
| @@ -207,6 +207,8 @@ void Verifier::Visitor::Check(Node* node) {
|
| }
|
| CHECK_EQ(1, count_true);
|
| CHECK_EQ(1, count_false);
|
| + // The condition must be a Boolean.
|
| + CheckValueInputIs(node, 0, Type::Boolean());
|
| // Type is empty.
|
| CheckNotTyped(node);
|
| break;
|
| @@ -408,6 +410,10 @@ void Verifier::Visitor::Check(Node* node) {
|
| CHECK_EQ(0, effect_count);
|
| CHECK_EQ(0, control_count);
|
| CHECK_EQ(3, value_count);
|
| + // The condition must be a Boolean.
|
| + CheckValueInputIs(node, 0, Type::Boolean());
|
| + // Type can be anything.
|
| + CheckTypeIs(node, Type::Any());
|
| break;
|
| }
|
| case IrOpcode::kPhi: {
|
|
|