aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-12-03 07:43:05 +0000
committerChris Lattner <sabre@nondot.org>2008-12-03 07:43:05 +0000
commit54e7dfe9822b539dd716c17ab2627a31741f13bb (patch)
tree2e7e246505cd4a2697af4f8225788cf19d977d46 /lib/Transforms/Utils/BasicBlockUtils.cpp
parent3ec12f17d627ce7a79b0feae11e4e35f21cb70cf (diff)
downloadexternal_llvm-54e7dfe9822b539dd716c17ab2627a31741f13bb.zip
external_llvm-54e7dfe9822b539dd716c17ab2627a31741f13bb.tar.gz
external_llvm-54e7dfe9822b539dd716c17ab2627a31741f13bb.tar.bz2
fix assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/BasicBlockUtils.cpp')
-rw-r--r--lib/Transforms/Utils/BasicBlockUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/BasicBlockUtils.cpp b/lib/Transforms/Utils/BasicBlockUtils.cpp
index 9452e6e..1a255a4 100644
--- a/lib/Transforms/Utils/BasicBlockUtils.cpp
+++ b/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