Sink variable into assert

llvm-svn: 150841
This commit is contained in:
Matt Beaumont-Gay 2012-02-17 21:40:48 +00:00
parent a9afc6ac4a
commit 714b99dc84
1 changed files with 2 additions and 2 deletions

View File

@ -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.");