mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 20:59:51 +00:00
Don't use the removed API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177749 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ca6468c05
commit
63da4062e4
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user