Index: src/compiler/simplified-lowering.cc |
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc |
index 4766ea2b9bccfb1a4f5c77c47c7e9c4e9582e4c4..59dd741ee476f875aa9643e0213ef3bfabe9eea1 100644 |
--- a/src/compiler/simplified-lowering.cc |
+++ b/src/compiler/simplified-lowering.cc |
@@ -501,18 +501,14 @@ class RepresentationSelector { |
case IrOpcode::kHeapConstant: |
return VisitLeaf(node, kRepTagged); |
- case IrOpcode::kEnd: |
- case IrOpcode::kIfTrue: |
- case IrOpcode::kIfFalse: |
- case IrOpcode::kReturn: |
- case IrOpcode::kMerge: |
- case IrOpcode::kThrow: |
- return VisitInputs(node); // default visit for all node inputs. |
- |
case IrOpcode::kBranch: |
ProcessInput(node, 0, kRepBit); |
Enqueue(NodeProperties::GetControlInput(node, 0)); |
break; |
+ case IrOpcode::kSwitch: |
+ ProcessInput(node, 0, kRepWord32); |
+ Enqueue(NodeProperties::GetControlInput(node, 0)); |
+ break; |
case IrOpcode::kSelect: |
return VisitSelect(node, use, lowering); |
case IrOpcode::kPhi: |