| Index: src/compiler/register-allocator.cc
|
| diff --git a/src/compiler/register-allocator.cc b/src/compiler/register-allocator.cc
|
| index 8f024527503a761409b58046c64999c4d76cf3b4..801c7ca2cab859c1a0c71dccf1945a77c6c45633 100644
|
| --- a/src/compiler/register-allocator.cc
|
| +++ b/src/compiler/register-allocator.cc
|
| @@ -1328,11 +1328,9 @@ void RegisterAllocator::BuildLiveRanges() {
|
| BitVector::Iterator iterator(live);
|
| LifetimePosition start = LifetimePosition::FromInstructionIndex(
|
| block->first_instruction_index());
|
| - int end_index = code()
|
| - ->InstructionBlockAt(block->loop_end())
|
| - ->last_instruction_index();
|
| LifetimePosition end =
|
| - LifetimePosition::FromInstructionIndex(end_index).NextInstruction();
|
| + LifetimePosition::FromInstructionIndex(
|
| + code()->LastLoopInstructionIndex(block)).NextInstruction();
|
| while (!iterator.Done()) {
|
| int operand_index = iterator.Current();
|
| LiveRange* range = LiveRangeFor(operand_index);
|
|
|