Fix assert condition.
authorLang Hames <lhames@gmail.com>
Tue, 20 Dec 2011 20:23:40 +0000 (20:23 +0000)
committerLang Hames <lhames@gmail.com>
Tue, 20 Dec 2011 20:23:40 +0000 (20:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146987 91177308-0d34-0410-b5e6-96231b3b80d8

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))