fix assertion.

llvm-svn: 60468
This commit is contained in:
Chris Lattner 2008-12-03 07:43:05 +00:00
parent 50532410d1
commit c04a1ffa9a
1 changed files with 1 additions and 1 deletions

View File

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