Don't use the removed API.

llvm-svn: 177749
This commit is contained in:
Bill Wendling 2013-03-22 18:49:53 +00:00
parent 3b3e50503c
commit a397c017bb
1 changed files with 2 additions and 5 deletions

View File

@ -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.