Skip to content

Add missing validity-check for SwiftASTContextReader #1442

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
Jul 13, 2020

Conversation

vedantk
Copy link

@vedantk vedantk commented Jul 10, 2020

This is a narrower version of
#1440 spun off for 5.3.

I've kept 'scratch_ctx' wrapped in an Optional to minimize the necessary
source changes. Simply removing the Optional triggers a subsequent
assert because the context lock is not taken (even though the context
reader is invalid).

rdar://65276251

This is a narrower version of
swiftlang#1440 spun off for 5.3.

I've kept 'scratch_ctx' wrapped in an Optional to minimize the necessary
source changes. Simply removing the Optional triggers a subsequent
assert because the context lock is not taken (even though the context
reader is invalid).

rdar://65276251
@vedantk vedantk requested review from adrian-prantl and dcci July 10, 2020 19:01
@vedantk
Copy link
Author

vedantk commented Jul 10, 2020

@swift-ci test

Copy link
Member

@dcci dcci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK for 5.3

@vedantk vedantk merged commit 6779a95 into swiftlang:swift/release/5.3 Jul 13, 2020
@vedantk vedantk deleted the eng/PR-65276251-5.3 branch July 13, 2020 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants