Skip to content

SILGen: Correct handling of subscripts with addressors. #73410

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 1 commit into from
May 3, 2024

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented May 3, 2024

Remove improper special-case handling of subscripts in findStorageReferenceExprForMoveOnly. The correct thing to do for any storage decl ref of noncopyable type is to emit it as a borrow if it's implemented using storage, a read accessor, or an addressor. Fixes rdar://127335590.

Remove improper special-case handling of subscripts in `findStorageReferenceExprForMoveOnly`.
The correct thing to do for any storage decl ref of noncopyable type is to emit it as a borrow
if it's implemented using storage, a read accessor, or an addressor. Fixes rdar://127335590.
@jckarter
Copy link
Contributor Author

jckarter commented May 3, 2024

@swift-ci Please test

@jckarter
Copy link
Contributor Author

jckarter commented May 3, 2024

@swift-ci Please test source compatibility

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.

1 participant