Index: src/compiler/register-allocator.cc |
diff --git a/src/compiler/register-allocator.cc b/src/compiler/register-allocator.cc |
index 9d745d0097f4e627707a0349f006c6073db7592d..a429a97076b05f7a6408ea5ebdca8acc5aaf6c75 100644 |
--- a/src/compiler/register-allocator.cc |
+++ b/src/compiler/register-allocator.cc |
@@ -2,6 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "src/base/adapters.h" |
#include "src/compiler/linkage.h" |
#include "src/compiler/register-allocator.h" |
#include "src/string-stream.h" |
@@ -1411,9 +1412,8 @@ void RegisterAllocator::MeetRegisterConstraints() { |
void RegisterAllocator::ResolvePhis() { |
// Process the blocks in reverse order. |
- for (auto i = code()->instruction_blocks().rbegin(); |
- i != code()->instruction_blocks().rend(); ++i) { |
- ResolvePhis(*i); |
+ for (InstructionBlock* block : base::Reversed(code()->instruction_blocks())) { |
+ ResolvePhis(block); |
} |
} |