llvm.org GIT mirror llvm / 1a03902
Trivial simplification. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129759 91177308-0d34-0410-b5e6-96231b3b80d8 Jay Foad 9 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
6767
6868 // Let the basic block know that we are letting go of it. Based on this,
6969 // it will adjust it's PHI nodes.
70 assert(BI->getParent() && "Terminator not inserted in block!");
71 OldDest->removePredecessor(BI->getParent());
70 OldDest->removePredecessor(BB);
7271
7372 // Replace the conditional branch with an unconditional one.
7473 BranchInst::Create(Destination, BI);