Fix assert condition.

llvm-svn: 146987
This commit is contained in:
Lang Hames 2011-12-20 20:23:40 +00:00
parent 6f3beda2b4
commit 843255f890

View File

@ -65,7 +65,7 @@ void LiveRangeCalc::extend(LiveInterval *LI,
assert(DomTree && "Missing dominator tree");
MachineBasicBlock *KillMBB = Indexes->getMBBFromIndex(Kill.getPrevSlot());
assert(Kill && "No MBB at Kill");
assert(KillMBB && "No MBB at Kill");
// Is there a def in the same MBB we can extend?
if (LI->extendInBlock(Indexes->getMBBStartIdx(KillMBB), Kill))