Skip to content

fix flow-isolation diagnostic message crash #41375

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 2 commits into from
Feb 18, 2022

Conversation

kavon
Copy link
Member

@kavon kavon commented Feb 14, 2022

resolves rdar://88776902

@kavon
Copy link
Member Author

kavon commented Feb 14, 2022

@swift-ci please test and merge

@kavon kavon force-pushed the unsegfault-flowiso branch from 0c872ee to 027a292 Compare February 15, 2022 01:57
@kavon
Copy link
Member Author

kavon commented Feb 15, 2022

@swift-ci please test

@kavon kavon force-pushed the unsegfault-flowiso branch from 027a292 to 6301e16 Compare February 15, 2022 21:14
@kavon
Copy link
Member Author

kavon commented Feb 15, 2022

@swift-ci please smoke test and merge

@kavon kavon marked this pull request as draft February 17, 2022 21:27
When emitting the note to point out what introduced
nonisolation, the code building the message assumed that
`DeclContext::getDecl` will not return null, when it can
if it's a closure expression.

fixes rdar://88776902
@kavon kavon force-pushed the unsegfault-flowiso branch from 6301e16 to 1343f6b Compare February 17, 2022 23:49
@kavon kavon changed the title obtain decl name in a more robust way during flow-isolation fix flow-isolation diagnostic message crash Feb 17, 2022
@kavon
Copy link
Member Author

kavon commented Feb 17, 2022

I figured out what went wrong; the decl name was not it.

@swift-ci please smoke test and merge

@kavon
Copy link
Member Author

kavon commented Feb 18, 2022

@swift-ci please smoke test and merge

@kavon kavon marked this pull request as ready for review February 18, 2022 00:05
@swift-ci swift-ci merged commit 36a8058 into swiftlang:main Feb 18, 2022
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