fix variable shadowing

BUG=427616
LOG=N

Review URL: https://codereview.chromium.org/1087533002

Cr-Commit-Position: refs/heads/master@{#27805}
This commit is contained in:
dcarney 2015-04-14 00:11:43 -07:00 committed by Commit bot
parent 8b737395c8
commit f7ace77427

View File

@ -204,8 +204,7 @@ void MoveOptimizer::OptimizeMerge(InstructionBlock* block) {
bool first_iteration = true;
for (auto pred_index : block->predecessors()) {
auto pred = code()->InstructionBlockAt(pred_index);
auto instr = LastInstruction(pred);
auto move_ops = instr->parallel_moves()[0]->move_operands();
auto move_ops = LastInstruction(pred)->parallel_moves()[0]->move_operands();
for (auto op = move_ops->begin(); op != move_ops->end(); ++op) {
if (op->IsRedundant()) continue;
MoveKey key = {*op->source(), *op->destination()};