Index: src/compiler/move-optimizer.cc |
diff --git a/src/compiler/move-optimizer.cc b/src/compiler/move-optimizer.cc |
index 56fdf038f40a6da08d09b728325dd6fb96686451..00ddda391db849fc3b02895ab85f0eb5f27c066f 100644 |
--- a/src/compiler/move-optimizer.cc |
+++ b/src/compiler/move-optimizer.cc |
@@ -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()}; |