Index: src/compiler/graph-visualizer.cc |
diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc |
index 0988ec9dab2348fb9d7c99f1d98cfbaf6f7a7cd1..e018c7ac198a65bb0389b5e83b9d537562d18491 100644 |
--- a/src/compiler/graph-visualizer.cc |
+++ b/src/compiler/graph-visualizer.cc |
@@ -725,7 +725,7 @@ |
} |
} else if (range->IsSpilled()) { |
int index = -1; |
- if (range->TopLevel()->GetSpillRange() != nullptr) { |
+ if (range->TopLevel()->HasSpillRange()) { |
index = kMaxInt; // This hasn't been set yet. |
} else { |
index = range->TopLevel()->GetSpillOperand()->index(); |