Skip to content

[sil-isolation-info] When determining isolation of a function arg, use its VarDecl. #80905

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

gottesmm
Copy link
Contributor

Otherwise, we can be inconsistent with isolations returned by other parts of the code. Previously we were just treating it always as self + nom decl, which is clearly wrong if a type is not self (e.x.: if it is an isolated parameter).

rdar://135459885

…e its VarDecl.

Otherwise, we can be inconsistent with isolations returned by other parts of the
code. Previously we were just treating it always as self + nom decl, which is
clearly wrong if a type is not self (e.x.: if it is an isolated parameter).

rdar://135459885
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

Looks good though I wonder if we have to go over all with... APIs and yet again "fix them even more" using the new caller isolation. Looks good tho

@gottesmm gottesmm merged commit 1e92156 into swiftlang:main Apr 18, 2025
3 checks passed
@gottesmm gottesmm deleted the pr-f326796c380c34ae29d23b894814045aa06390d8 branch April 18, 2025 14:51
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