Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index 9a9966df253bdafb75c9df250e3da951c108c9f0..23363677af9b83b159099e4774fa9792f1470d9d 100644 |
--- a/src/compiler/instruction-selector.cc |
+++ b/src/compiler/instruction-selector.cc |
@@ -480,6 +480,11 @@ size_t InstructionSelector::AddOperandToStateValueDescriptor( |
StateValueList* values, InstructionOperandVector* inputs, |
OperandGenerator* g, StateObjectDeduplicator* deduplicator, Node* input, |
MachineType type, FrameStateInputKind kind, Zone* zone) { |
+ if (input == nullptr) { |
+ values->PushOptimizedOut(); |
+ return 0; |
+ } |
+ |
switch (input->opcode()) { |
case IrOpcode::kObjectState: { |
UNREACHABLE(); |