aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
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.