Fix the obvious bug in my previous checkin
llvm-svn: 12618
This commit is contained in:
parent
9f0db32625
commit
eed034bcd3
|
@ -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…
Reference in New Issue