[llvm-commits] [llvm] r146987 - /llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp

Lang Hames lhames at gmail.com
Tue Dec 20 12:23:40 PST 2011


Author: lhames
Date: Tue Dec 20 14:23:40 2011
New Revision: 146987

URL: http://llvm.org/viewvc/llvm-project?rev=146987&view=rev
Log:
Fix assert condition.

Modified:
    llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp

Modified: llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp?rev=146987&r1=146986&r2=146987&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp (original)
+++ llvm/trunk/lib/CodeGen/LiveRangeCalc.cpp Tue Dec 20 14:23:40 2011
@@ -65,7 +65,7 @@
   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))





More information about the llvm-commits mailing list