Skip to content
Snippets Groups Projects
Commit c04a1ffa authored by Chris Lattner's avatar Chris Lattner
Browse files

fix assertion.

llvm-svn: 60468
parent 50532410
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ using namespace llvm; ...@@ -27,7 +27,7 @@ using namespace llvm;
/// DeleteDeadBlock - Delete the specified block, which must have no /// DeleteDeadBlock - Delete the specified block, which must have no
/// predecessors. /// predecessors.
void llvm::DeleteDeadBlock(BasicBlock *BB) { 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(); TerminatorInst *BBTerm = BB->getTerminator();
// Loop through all of our successors and make sure they know that one // Loop through all of our successors and make sure they know that one
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment