Skip to content

[5.5] LoadableByAddress: fix handling of yield instructions which can result in invalid SIL #38954

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

eeckstein
Copy link
Contributor

The code to handle yield instructions must be done earlier in rewriteFunction because it can add more instructions to the data structures, which also needs to be processed in rewriteFunction.

https://bugs.swift.org/browse/SR-14994
rdar://77526343

This is a cherry-pick of #38924

…t in invalid SIL

The code to handle yield instructions must be done earlier in `rewriteFunction` because it can add more instructions to the data structures, which also needs to be processed in  `rewriteFunction`.

https://bugs.swift.org/browse/SR-14994
rdar://77526343
@eeckstein eeckstein requested a review from a team as a code owner August 19, 2021 11:17
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein requested a review from rjmccall August 20, 2021 08:10
Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

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

It's unclear what this pass's rules about when to do things actually are, but this looks like it's at least closer to requirements than before.

@eeckstein eeckstein merged commit 36c4512 into swiftlang:release/5.5 Aug 24, 2021
@eeckstein eeckstein deleted the fix-loadablebyaddress-5.5 branch August 24, 2021 17:24
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