Skip to content

SIL: Perform move-only diag passes after ClosureLifetimeFixup. #61772

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

Conversation

jckarter
Copy link
Contributor

ClosureLifetimeFixup finalizes the lifetimes of nonescaping closures, which allows us to analyze their captures as borrows and permit move- only types to be captured by them.

ClosureLifetimeFixup finalizes the lifetimes of nonescaping closures,
which allows us to analyze their captures as borrows and permit move-
only types to be captured by them.
@jckarter jckarter requested a review from gottesmm October 27, 2022 21:06
@jckarter
Copy link
Contributor Author

@swift-ci Please test

// pass. This will happen when OSSA is no longer eliminated before the
// optimizer pipeline is run implying we can put a pass that requires OSSA
// there.
const auto &Options = P.getOptions();
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a test that shows this behavior? Then I am happy.

Copy link
Contributor

Choose a reason for hiding this comment

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

I talked with JoeG offline about this. They mentioned that this is just the first part of a larger fix so it isn't time yet to add a test for this behavior. So... LGTM!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no behavior change yet.

@jckarter
Copy link
Contributor Author

@swift-ci Please clean test

1 similar comment
@jckarter
Copy link
Contributor Author

@swift-ci Please clean test

@jckarter jckarter merged commit 9eefc2e into swiftlang:main Oct 28, 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.

2 participants