Skip to content

[5.5-05142021][Serialization] Skip MissingMembers when allowing errors #37561

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

Conversation

bnbarham
Copy link
Contributor

@bnbarham bnbarham commented May 21, 2021

Cherry-picks #37553


CCC Nomination

Explanation: When allowing compiler errors (enabled for compilations in the background indexing build arena), merge modules can crash during serialization when attempting to serialize MissingMemberDecls. A normal compilation would fail before hitting this point, hence the crash only happening during background indexing.

Scope: Background Indexing

Radar/SR Issue: rdar://76365694

Risk: Low. This change only impacts compiles allowing compiler errors, a mode exclusively used in background indexing.

Testing: Added a test case with a MissingMemberDecl that checks it no longer crashes.

A normal compilation would error before merging modules when there are
MissingMemberDecls, so the missing member case is unreachable. That's
not true when allowing errors though, where we continue regardless. Skip
the missing member instead of crashing.

Resolves rdar://76365694.
@bnbarham bnbarham added the r5.5 label May 21, 2021
@bnbarham
Copy link
Contributor Author

@swift-ci please test

@bnbarham bnbarham changed the title [Beta-1][Serialization] Skip MissingMembers when allowing errors [5.5-branched][Serialization] Skip MissingMembers when allowing errors May 21, 2021
@bnbarham bnbarham changed the title [5.5-branched][Serialization] Skip MissingMembers when allowing errors [5.5-05142021][Serialization] Skip MissingMembers when allowing errors May 21, 2021
@bnbarham
Copy link
Contributor Author

@swift-ci please nominate

@airspeedswift airspeedswift merged commit 9033e9e into swiftlang:release/5.5-05142021 May 21, 2021
@bnbarham bnbarham deleted the beta-1-cherry-rdar76365694 branch May 21, 2021 22:12
@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