[llvm] r177749 - Don't use the removed API.
Bill Wendling
isanbard at gmail.com
Fri Mar 22 11:49:53 PDT 2013
Author: void
Date: Fri Mar 22 13:49:53 2013
New Revision: 177749
URL: http://llvm.org/viewvc/llvm-project?rev=177749&view=rev
Log:
Don't use the removed API.
Modified:
llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
Modified: llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp?rev=177749&r1=177748&r2=177749&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp Fri Mar 22 13:49:53 2013
@@ -159,11 +159,8 @@ void InvokeInliningInfo::forwardResume(R
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.
More information about the llvm-commits
mailing list