Fix assert condition.
[oota-llvm.git] / lib / CodeGen / LiveRangeCalc.cpp
index a7d5af5198e5fbf4ef96eb2569abee8162ebd49b..1d6c3c548652e45188d177c1a899d61154bcc9bf 100644 (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))