Skip to content

[6.2] FunctionSignatureOptimization: don't convert indirect @in to @in_guaranteed if the argument is mutated #81497

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
May 14, 2025

Conversation

eeckstein
Copy link
Contributor

eeckstein added 2 commits May 14, 2025 07:09
…lable

Also, make it more tolerant to instructions and builtins, which are not explicitly handled.
This avoids crashes when new instructions are added. We got lucky that this didn't happen so far.
…uaranteed` if the argument is mutated

This fixes a verifier error because an `@in_guaranteed` argument must not be mutated.

swiftlang#81444
rdar://151147971
@eeckstein eeckstein requested a review from a team as a code owner May 14, 2025 05:19
@eeckstein eeckstein requested a review from meg-gupta May 14, 2025 05:19
@eeckstein
Copy link
Contributor Author

@swift-ci test

Copy link
Contributor

@meg-gupta meg-gupta left a comment

Choose a reason for hiding this comment

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

lgtm

@eeckstein eeckstein merged commit 54b0070 into swiftlang:release/6.2 May 14, 2025
5 checks passed
@eeckstein eeckstein deleted the fix-fso-6.2 branch May 14, 2025 15:14
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