Index: src/compiler/graph-visualizer.cc |
diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc |
index 81ed99efd4d40fb995dacaa6c9010cb57fd49bf1..e018c7ac198a65bb0389b5e83b9d537562d18491 100644 |
--- a/src/compiler/graph-visualizer.cc |
+++ b/src/compiler/graph-visualizer.cc |
@@ -725,9 +725,8 @@ void GraphC1Visualizer::PrintLiveRange(LiveRange* range, const char* type) { |
} |
} else if (range->IsSpilled()) { |
int index = -1; |
- if (range->TopLevel()->GetSpillRange() != nullptr && |
- range->TopLevel()->GetSpillRange()->id() != -1) { |
- index = range->TopLevel()->GetSpillRange()->id(); |
+ if (range->TopLevel()->HasSpillRange()) { |
+ index = kMaxInt; // This hasn't been set yet. |
} else { |
index = range->TopLevel()->GetSpillOperand()->index(); |
} |