mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
Trivial simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129759 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ea70a06fa7
commit
1a0390253b
@ -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