mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-09 05:11:39 +00:00
Fix the obvious bug in my previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12618 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
147af6b75f
commit
7aa773bc07
@ -701,6 +701,9 @@ bool llvm::SimplifyCFG(BasicBlock *BB) {
|
||||
if (FVPN->getParent() == FalseSucc)
|
||||
FalseValue = FVPN->getIncomingValueForBlock(BI->getParent());
|
||||
|
||||
TrueSucc->removePredecessor(BI->getParent());
|
||||
FalseSucc->removePredecessor(BI->getParent());
|
||||
|
||||
// Insert a new select instruction.
|
||||
Value *NewRetVal = new SelectInst(BI->getCondition(), TrueValue,
|
||||
FalseValue, "retval", BI);
|
||||
|
Loading…
x
Reference in New Issue
Block a user