From c04a1ffa9a411006876049b586d212c20348ef49 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 3 Dec 2008 07:43:05 +0000 Subject: fix assertion. llvm-svn: 60468 --- llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp') diff --git a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp index 9452e6e8778..1a255a4bc01 100644 --- a/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp +++ b/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp @@ -27,7 +27,7 @@ using namespace llvm; /// 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 -- cgit v1.2.3