Sink variable into assert
authorMatt Beaumont-Gay <matthewbg@google.com>
Fri, 17 Feb 2012 21:40:48 +0000 (21:40 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Fri, 17 Feb 2012 21:40:48 +0000 (21:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150841 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/LiveIntervalAnalysis.cpp

index 4e66bf613832164aa3713cc84b9b7f649553b30b..e84e8009ad441214db01a1a1d98f6121963ec76a 100644 (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.");