Skip to content

FunctionSignatureOptimization: don't convert indirect @in to @in_guaranteed if the argument is mutated #81480

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

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

#81444
rdar://151147971

eeckstein added 2 commits May 13, 2025 18:53
…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
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit 7ff1066 into swiftlang:main May 14, 2025
5 checks passed
@eeckstein eeckstein deleted the fix-fso branch May 14, 2025 04:25
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

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