Skip to content

Look through defer bodies in actor isolation checking #41067

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
Jan 29, 2022

Conversation

rjmccall
Copy link
Contributor

Fixes rdar://88200899

@rjmccall rjmccall requested a review from DougGregor January 28, 2022 21:27
@rjmccall
Copy link
Contributor Author

@swift-ci Please test

Comment on lines +1736 to +1741
// Look through defers.
// FIXME: should this be covered automatically by the logic below?
if (auto func = dyn_cast<FuncDecl>(dc))
if (func->isDeferBody())
continue;

Copy link
Member

Choose a reason for hiding this comment

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

Hmm good question. I think making it explicit is a good idea regardless.

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 67ec699

@rjmccall
Copy link
Contributor Author

@swift-ci Please test macOS

@rjmccall rjmccall merged commit 2696df4 into swiftlang:main Jan 29, 2022
@rjmccall rjmccall deleted the defer-isolation branch January 29, 2022 08:38
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.

4 participants