From a397c017bb353c84b725001ddc108d02e25e9a1c Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 22 Mar 2013 18:49:53 +0000 Subject: Don't use the removed API. llvm-svn: 177749 --- llvm/lib/Transforms/Utils/InlineFunction.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index 3e1022ef8c7..62f101f1e29 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -159,11 +159,8 @@ void InvokeInliningInfo::forwardResume(ResumeInst *RI, SmallPtrSet InlinedLPads; Function *Caller = FirstNewBlock->getParent(); for (Function::iterator I = FirstNewBlock, E = Caller->end(); I != E; ++I) - if (InvokeInst *II = dyn_cast(I->getTerminator())) { - LandingPadInst *LPI = II->getLandingPadInst(); - if (!LPI->hasCatchAll()) - InlinedLPads.insert(LPI); - } + if (InvokeInst *II = dyn_cast(I->getTerminator())) + InlinedLPads.insert(II->getLandingPadInst()); // Merge the catch clauses from the outer landing pad instruction into the // inlined landing pad instructions. -- cgit v1.2.3