mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
[WinEH] Ignore filter clauses while mapping landing pad blocks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235656 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1666,6 +1666,12 @@ void WinEHPrepare::mapLandingPadBlocks(LandingPadInst *LPad,
|
||||
while (HandlersFound != NumClauses) {
|
||||
BasicBlock *NextBB = nullptr;
|
||||
|
||||
// Skip over filter clauses.
|
||||
if (LPad->isFilter(HandlersFound)) {
|
||||
++HandlersFound;
|
||||
continue;
|
||||
}
|
||||
|
||||
// See if the clause we're looking for is a catch-all.
|
||||
// If so, the catch begins immediately.
|
||||
Constant *ExpectedSelector = LPad->getClause(HandlersFound)->stripPointerCasts();
|
||||
|
||||
Reference in New Issue
Block a user