Index: src/compiler/instruction.cc |
diff --git a/src/compiler/instruction.cc b/src/compiler/instruction.cc |
index 9d6d5e2ec5e663854a39fc5d5e6a652405e310c3..6b0540a0d3426b9ebd5341a7c2852894a7a70bb1 100644 |
--- a/src/compiler/instruction.cc |
+++ b/src/compiler/instruction.cc |
@@ -387,14 +387,12 @@ static InstructionBlock* InstructionBlockFor(Zone* zone, |
GetLoopEndRpo(block), block->deferred()); |
// Map successors and precessors |
instr_block->successors().reserve(block->SuccessorCount()); |
- for (auto it = block->successors_begin(); it != block->successors_end(); |
- ++it) { |
- instr_block->successors().push_back((*it)->GetRpoNumber()); |
+ for (BasicBlock* successor : block->successors()) { |
+ instr_block->successors().push_back(successor->GetRpoNumber()); |
} |
instr_block->predecessors().reserve(block->PredecessorCount()); |
- for (auto it = block->predecessors_begin(); it != block->predecessors_end(); |
- ++it) { |
- instr_block->predecessors().push_back((*it)->GetRpoNumber()); |
+ for (BasicBlock* predecessor : block->predecessors()) { |
+ instr_block->predecessors().push_back(predecessor->GetRpoNumber()); |
} |
return instr_block; |
} |