Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 38e06ba9b9b390387c3dfcc0ed37c31e0f498be6..746caf262071ab6b1dc155425b4b4c24cefce5b3 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -646,7 +646,7 @@ void AstGraphBuilder::ClearNonLiveSlotsInFrameStates() { |
} |
NonLiveFrameStateSlotReplacer replacer( |
- &state_values_cache_, jsgraph()->UndefinedConstant(), |
+ &state_values_cache_, jsgraph()->OptimizedOutConstant(), |
liveness_analyzer()->local_count(), local_zone()); |
Variable* arguments = info()->scope()->arguments(); |
if (arguments != nullptr && arguments->IsStackAllocated()) { |