projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
147af6b
)
Fix the obvious bug in my previous checkin
author
Chris Lattner
<sabre@nondot.org>
Fri, 2 Apr 2004 18:15:10 +0000
(18:15 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 2 Apr 2004 18:15:10 +0000
(18:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12618
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index b606c58d5271ca12eccfdb74a1f780a4eaf35369..9c3610830e1db0c9bf825dab55f8ee9fdc9e72c7 100644
(file)
--- a/
lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/
lib/Transforms/Utils/SimplifyCFG.cpp
@@
-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);