diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp index 3e1022ef8c7..62f101f1e29 100644 --- a/lib/Transforms/Utils/InlineFunction.cpp +++ b/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.