[llvm-commits] [llvm] r60468 - /llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp

Chris Lattner sabre at nondot.org
Tue Dec 2 23:43:06 PST 2008


Author: lattner
Date: Wed Dec  3 01:43:05 2008
New Revision: 60468

URL: http://llvm.org/viewvc/llvm-project?rev=60468&view=rev
Log:
fix assertion.

Modified:
    llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp

Modified: llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp?rev=60468&r1=60467&r2=60468&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/BasicBlockUtils.cpp Wed Dec  3 01:43:05 2008
@@ -27,7 +27,7 @@
 /// DeleteDeadBlock - Delete the specified block, which must have no
 /// predecessors.
 void llvm::DeleteDeadBlock(BasicBlock *BB) {
-  assert(pred_begin(BB) != pred_end(BB) && "Block is not dead!");
+  assert(pred_begin(BB) == pred_end(BB) && "Block is not dead!");
   TerminatorInst *BBTerm = BB->getTerminator();
   
   // Loop through all of our successors and make sure they know that one





More information about the llvm-commits mailing list