Index: src/compiler/simplified-lowering.cc |
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc |
index 598795b4bb4ddde04517326e559fdf6d75965ed7..715e4189b6298f8eedce5cf73ffc267b4e8a2b89 100644 |
--- a/src/compiler/simplified-lowering.cc |
+++ b/src/compiler/simplified-lowering.cc |
@@ -894,6 +894,7 @@ class RepresentationSelector { |
// Helper for handling selects. |
void VisitSelect(Node* node, Truncation truncation, |
SimplifiedLowering* lowering) { |
+ DCHECK(TypeOf(node->InputAt(0))->Is(Type::Boolean())); |
ProcessInput(node, 0, UseInfo::Bool()); |
MachineRepresentation output = |
@@ -1424,10 +1425,12 @@ class RepresentationSelector { |
return; |
} |
- case IrOpcode::kBranch: |
+ case IrOpcode::kBranch: { |
+ DCHECK(TypeOf(node->InputAt(0))->Is(Type::Boolean())); |
ProcessInput(node, 0, UseInfo::Bool()); |
EnqueueInput(node, NodeProperties::FirstControlIndex(node)); |
return; |
+ } |
case IrOpcode::kSwitch: |
ProcessInput(node, 0, UseInfo::TruncatingWord32()); |
EnqueueInput(node, NodeProperties::FirstControlIndex(node)); |