mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-23 20:34:58 +00:00
Trivial simplification.
llvm-svn: 129759
This commit is contained in:
parent
c84b16717b
commit
0dcd432074
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user