aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-11-23 09:10:17 +0000
committerDuncan Sands <baldrick@free.fr>2007-11-23 09:10:17 +0000
commitbb65098d2c8c08e1c45d5567c07f492e2a770aff (patch)
tree8d741b3808c8d2b03b3f3928322bcb08a25f2e3e /lib/Transforms
parent42b5e08e7123aefbc6e93b547f44e3ed7604526f (diff)
Remove some logic I thoughtlessly copied over
from the old ADCE implementation (there it was correct because the transform was being done for read-only functions). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/SimplifyCFG.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/SimplifyCFG.cpp b/lib/Transforms/Scalar/SimplifyCFG.cpp
index 692a8af0a2..3717a161ae 100644
--- a/lib/Transforms/Scalar/SimplifyCFG.cpp
+++ b/lib/Transforms/Scalar/SimplifyCFG.cpp
@@ -88,9 +88,6 @@ static void ChangeToCall(InvokeInst *II) {
// Update PHI nodes in the unwind destination
II->getUnwindDest()->removePredecessor(BB);
BB->getInstList().erase(II);
-
- if (NewCall->use_empty())
- BB->getInstList().erase(NewCall);
}
/// IsNoReturn - Return true if the specified call is to a no-return function.