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/instruction_simplifier.cc | |
| parent | f3349b5cc7baa06bdc82d3f55e8e57a7e266b809 (diff) | |
| parent | 372f10e5b0b34e2bb6e2b79aeba6c441e14afd1f (diff) | |
Merge "Refactor handling of input records."
Diffstat (limited to 'compiler/optimizing/instruction_simplifier.cc')
| -rw-r--r-- | compiler/optimizing/instruction_simplifier.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/instruction_simplifier.cc b/compiler/optimizing/instruction_simplifier.cc index a31d378e46..eb1d1560db 100644 --- a/compiler/optimizing/instruction_simplifier.cc +++ b/compiler/optimizing/instruction_simplifier.cc @@ -1550,7 +1550,7 @@ void InstructionSimplifierVisitor::SimplifyRotate(HInvoke* invoke, HRor* ror = new (GetGraph()->GetArena()) HRor(type, value, distance); invoke->GetBlock()->ReplaceAndRemoveInstructionWith(invoke, ror); // Remove ClinitCheck and LoadClass, if possible. - HInstruction* clinit = invoke->InputAt(invoke->InputCount() - 1); + HInstruction* clinit = invoke->GetInputs().back(); if (clinit->IsClinitCheck() && !clinit->HasUses()) { clinit->GetBlock()->RemoveInstruction(clinit); HInstruction* ldclass = clinit->InputAt(0); |