-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WinEH] Update CoreCLR EH state numbering
Fix the CLR state numbering to generate correct tables for the new funclet EH representation, and update the lit test to verify them. Functionally, there are four changes: - Arity of cleanuppad parameters needs to use getNumArgOperands() instead of getNumOperands() now that cleanuppad has a parent token operand. - We assign a catchswitch the state of its first catch, not its unwind destination. - Don't queue catchpads' users -- this could visit handlers for inner tries before handlers for outer tries, and we'll visit everything we need to, in correct order, by queuing pads' predecessors. Change the initial worklist conditions from isToplevelPadForMSVC to a suitably implemented isToplevelPadForCLR accordingly. - Adjust getEHPadFromPredecessor to allow CLR state numbering to call it and have preds returned regardless of their parentage. Also change some variable names to improve readability.
- Loading branch information
1 parent
b8671b6
commit 59b7875
Showing
2 changed files
with
169 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.