mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +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:
@@ -159,11 +159,8 @@ void InvokeInliningInfo::forwardResume(ResumeInst *RI,
|
|||||||
SmallPtrSet<LandingPadInst*, 16> InlinedLPads;
|
SmallPtrSet<LandingPadInst*, 16> InlinedLPads;
|
||||||
Function *Caller = FirstNewBlock->getParent();
|
Function *Caller = FirstNewBlock->getParent();
|
||||||
for (Function::iterator I = FirstNewBlock, E = Caller->end(); I != E; ++I)
|
for (Function::iterator I = FirstNewBlock, E = Caller->end(); I != E; ++I)
|
||||||
if (InvokeInst *II = dyn_cast<InvokeInst>(I->getTerminator())) {
|
if (InvokeInst *II = dyn_cast<InvokeInst>(I->getTerminator()))
|
||||||
LandingPadInst *LPI = II->getLandingPadInst();
|
InlinedLPads.insert(II->getLandingPadInst());
|
||||||
if (!LPI->hasCatchAll())
|
|
||||||
InlinedLPads.insert(LPI);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Merge the catch clauses from the outer landing pad instruction into the
|
// Merge the catch clauses from the outer landing pad instruction into the
|
||||||
// inlined landing pad instructions.
|
// inlined landing pad instructions.
|
||||||
|
Reference in New Issue
Block a user