Skip to content

[5.5][PrintAsObjC] Do not output invalid decls when allowing errors #38949

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

bnbarham
Copy link
Contributor

Cherry-picks #38923

Frequent crash with a low-risk fix (just avoids printing invalid
declarations).


We still want the ObjectiveC header when allowing errors, but make sure
to skip printing out any invalid declarations that may be caused because
of those errors.

In particular, duplicate declarations were causing a crash when sorting
declarations where various assumptions would end up casting a
non-ExtensionDecl to an ExtensionDecl.

Resolves rdar://78023656

We still want the ObjectiveC header when allowing errors, but make sure
to skip printing out any invalid declarations that may be caused because
of those errors.

In particular, duplicate declarations were causing a crash when sorting
declarations where various assumptions would end up casting a
non-ExtensionDecl to an ExtensionDecl.

Resolves rdar://78023656
@bnbarham bnbarham added the r5.5 label Aug 19, 2021
@bnbarham bnbarham requested a review from akyrtzi August 19, 2021 03:58
@bnbarham bnbarham requested a review from a team as a code owner August 19, 2021 03:58
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham bnbarham changed the title [PrintAsObjC] Do not output invalid decls when allowing errors [5.5][PrintAsObjC] Do not output invalid decls when allowing errors Aug 19, 2021
@bnbarham bnbarham merged commit 853ea8a into release/5.5 Aug 19, 2021
@bnbarham bnbarham deleted the cherry-rdar78023656 branch August 19, 2021 23:14
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants