summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-03-22 18:49:53 +0000
committerBill Wendling <isanbard@gmail.com>2013-03-22 18:49:53 +0000
commit63da4062e4ef85fd64a6f5681e61e4bba4c4a076 (patch)
tree27592735ccfa8ab266a7b06fa46a82f0388c92f8
parent1ca6468c0518b2c2dcd69c68b2099ae93f57f8f9 (diff)
downloadllvm-63da4062e4ef85fd64a6f5681e61e4bba4c4a076.tar.gz
llvm-63da4062e4ef85fd64a6f5681e61e4bba4c4a076.tar.bz2
llvm-63da4062e4ef85fd64a6f5681e61e4bba4c4a076.tar.xz
Don't use the removed API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177749 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Utils/InlineFunction.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp
index 3e1022ef8c..62f101f1e2 100644
--- a/lib/Transforms/Utils/InlineFunction.cpp
+++ b/lib/Transforms/Utils/InlineFunction.cpp
@@ -159,11 +159,8 @@ void InvokeInliningInfo::forwardResume(ResumeInst *RI,
SmallPtrSet<LandingPadInst*, 16> InlinedLPads;
Function *Caller = FirstNewBlock->getParent();
for (Function::iterator I = FirstNewBlock, E = Caller->end(); I != E; ++I)
- if (InvokeInst *II = dyn_cast<InvokeInst>(I->getTerminator())) {
- LandingPadInst *LPI = II->getLandingPadInst();
- if (!LPI->hasCatchAll())
- InlinedLPads.insert(LPI);
- }
+ if (InvokeInst *II = dyn_cast<InvokeInst>(I->getTerminator()))
+ InlinedLPads.insert(II->getLandingPadInst());
// Merge the catch clauses from the outer landing pad instruction into the
// inlined landing pad instructions.