1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Sink variable into assert

llvm-svn: 150841
This commit is contained in:
Matt Beaumont-Gay 2012-02-17 21:40:48 +00:00
parent 27171ecf20
commit a45b6e23d0

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