Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index f204bb849e4045acef928a2068130f5572112cd4..c64e8e078a4ccd09e4dc59da3f02cdff056dd707 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(); |