From e90049140fdfb89080e5cc9b000b0c9be8c18bcd Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Thu, 16 Jun 2016 16:50:52 +0100 Subject: Create a typedef for HInstruction::GetInputs() return type. And some other cleanup after https://android-review.googlesource.com/230742 Test: No new tests. ART test suite passed (tested on host). Change-Id: I4743bf17544d0234c6ccb46dd0c1b9aae5c93e17 --- compiler/optimizing/nodes.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler/optimizing/nodes.cc') diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index c2c212b66f..d557f42968 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -754,7 +754,7 @@ bool HBasicBlock::Dominates(HBasicBlock* other) const { } static void UpdateInputsUsers(HInstruction* instruction) { - auto&& inputs = instruction->GetInputs(); + HInputsRef inputs = instruction->GetInputs(); for (size_t i = 0; i < inputs.size(); ++i) { inputs[i]->AddUseAt(instruction, i); } @@ -1312,8 +1312,8 @@ bool HInstruction::Equals(const HInstruction* other) const { DCHECK_EQ(GetKind(), other->GetKind()); if (!InstructionDataEquals(other)) return false; if (GetType() != other->GetType()) return false; - auto&& inputs = GetInputs(); - auto&& other_inputs = other->GetInputs(); + HConstInputsRef inputs = GetInputs(); + HConstInputsRef other_inputs = other->GetInputs(); if (inputs.size() != other_inputs.size()) return false; for (size_t i = 0; i != inputs.size(); ++i) { if (inputs[i] != other_inputs[i]) return false; -- cgit v1.2.3-59-g8ed1b