summaryrefslogtreecommitdiff
path: root/compiler/optimizing/register_allocator.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2015-10-08 15:47:08 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-10-08 15:47:08 +0000
commit359f77c44dafef7ebed027180422ee75eef1467c (patch)
treeb4b7fd4f8bf646dcd106351aaf2f5c1e6d719911 /compiler/optimizing/register_allocator.cc
parent64d8d93aa9359b1126513dba92e27dbe184bfe3a (diff)
parentec7802a102d49ab5c17495118d4fe0bcc7287beb (diff)
Merge "Add DCHECKs to ArenaVector and ScopedArenaVector."
Diffstat (limited to 'compiler/optimizing/register_allocator.cc')
-rw-r--r--compiler/optimizing/register_allocator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/register_allocator.cc b/compiler/optimizing/register_allocator.cc
index 152a23bacb..6fc77721e7 100644
--- a/compiler/optimizing/register_allocator.cc
+++ b/compiler/optimizing/register_allocator.cc
@@ -1892,7 +1892,7 @@ void RegisterAllocator::Resolve() {
for (HInstructionIterator inst_it(current->GetPhis()); !inst_it.Done(); inst_it.Advance()) {
HInstruction* phi = inst_it.Current();
for (size_t i = 0, e = current->GetPredecessors().size(); i < e; ++i) {
- HBasicBlock* predecessor = current->GetPredecessor(i);
+ HBasicBlock* predecessor = current->GetPredecessors()[i];
DCHECK_EQ(predecessor->NumberOfNormalSuccessors(), 1u);
HInstruction* input = phi->InputAt(i);
Location source = input->GetLiveInterval()->GetLocationAt(