diff options
-rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 4e66bf61383..e84e8009ad4 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -1271,8 +1271,8 @@ void LiveIntervals::handleMove(MachineInstr* mi) { SlotIndex newIndex = mi->isInsideBundle() ? indexes_->getInstructionIndex(mi->getBundleStart()) : indexes_->insertMachineInstrInMaps(mi); - MachineBasicBlock* mbb = mi->getParent(); - assert(getMBBStartIdx(mbb) <= oldIndex && oldIndex < getMBBEndIdx(mbb) && + assert(getMBBStartIdx(mi->getParent()) <= oldIndex && + oldIndex < getMBBEndIdx(mi->getParent()) && "Cannot handle moves across basic block boundaries."); assert(!mi->isBundled() && "Can't handle bundled instructions yet."); |