Index: src/compiler/register-allocator.cc |
diff --git a/src/compiler/register-allocator.cc b/src/compiler/register-allocator.cc |
index 416b970865f6bd95d9bdfee0bb90c8b2775bb320..1c638fc655c3c113474583eed12150cb333075bb 100644 |
--- a/src/compiler/register-allocator.cc |
+++ b/src/compiler/register-allocator.cc |
@@ -2389,9 +2389,11 @@ LiveRange* RegisterAllocator::SplitRangeAt(LiveRange* range, |
if (pos.Value() <= range->Start().Value()) return range; |
// We can't properly connect liveranges if split occured at the end |
- // of control instruction. |
+ // a block. |
DCHECK(pos.IsInstructionStart() || |
- !InstructionAt(pos.InstructionIndex())->IsControl()); |
+ code() |
+ ->GetInstructionBlock(pos.InstructionIndex()) |
+ ->last_instruction_index() != pos.InstructionIndex()); |
int vreg = GetVirtualRegister(); |
if (!AllocationOk()) return nullptr; |