diff options
| author | 2016-06-03 12:34:22 +0000 | |
|---|---|---|
| committer | 2016-06-03 12:34:23 +0000 | |
| commit | 4248fc46289f9940aa13d22e4f89abed5e74b169 (patch) | |
| tree | aa72b1443c7ed4ff86eb96468c56071df30c89b8 /compiler/optimizing/code_generator.cc | |
| parent | f3349b5cc7baa06bdc82d3f55e8e57a7e266b809 (diff) | |
| parent | 372f10e5b0b34e2bb6e2b79aeba6c441e14afd1f (diff) | |
Merge "Refactor handling of input records."
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
| -rw-r--r-- | compiler/optimizing/code_generator.cc | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc index 08670a0d82..6e851bf1ba 100644 --- a/compiler/optimizing/code_generator.cc +++ b/compiler/optimizing/code_generator.cc @@ -111,10 +111,10 @@ static bool CheckTypeConsistency(HInstruction* instruction) {          << " " << locations->Out();    } -  for (size_t i = 0, e = instruction->InputCount(); i < e; ++i) { -    DCHECK(CheckType(instruction->InputAt(i)->GetType(), locations->InAt(i))) -      << instruction->InputAt(i)->GetType() -      << " " << locations->InAt(i); +  auto&& inputs = instruction->GetInputs(); +  for (size_t i = 0; i < inputs.size(); ++i) { +    DCHECK(CheckType(inputs[i]->GetType(), locations->InAt(i))) +      << inputs[i]->GetType() << " " << locations->InAt(i);    }    HEnvironment* environment = instruction->GetEnvironment(); |