| Index: src/compiler/graph-visualizer.cc
|
| diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc
|
| index 173db9ca8677ef50490a7d54c908d8ad5023b997..3a8013b57a3b2f082bc0b44f8ff9b06534a764a9 100644
|
| --- a/src/compiler/graph-visualizer.cc
|
| +++ b/src/compiler/graph-visualizer.cc
|
| @@ -756,11 +756,10 @@ void GraphC1Visualizer::PrintLiveRange(LiveRange* range, const char* type) {
|
| hint_index = UnallocatedOperand::cast(op)->virtual_register();
|
| }
|
| os_ << " " << parent_index << " " << hint_index;
|
| - UseInterval* cur_interval = range->first_interval();
|
| - while (cur_interval != NULL && range->Covers(cur_interval->start())) {
|
| - os_ << " [" << cur_interval->start().Value() << ", "
|
| - << cur_interval->end().Value() << "[";
|
| - cur_interval = cur_interval->next();
|
| + for (auto interval = range->first_interval(); interval != nullptr;
|
| + interval = interval->next()) {
|
| + os_ << " [" << interval->start().Value() << ", "
|
| + << interval->end().Value() << "[";
|
| }
|
|
|
| UsePosition* current_pos = range->first_pos();
|
|
|