Trivial simplification.

llvm-svn: 129759
This commit is contained in:
Jay Foad 2011-04-19 15:23:29 +00:00
parent ddd3a2ec1d
commit 6a85be25a4
1 changed files with 1 additions and 2 deletions

View File

@ -68,8 +68,7 @@ bool llvm::ConstantFoldTerminator(BasicBlock *BB) {
// Let the basic block know that we are letting go of it. Based on this,
// it will adjust it's PHI nodes.
assert(BI->getParent() && "Terminator not inserted in block!");
OldDest->removePredecessor(BI->getParent());
OldDest->removePredecessor(BB);
// Replace the conditional branch with an unconditional one.
BranchInst::Create(Destination, BI);