Skip to content

SIL: don't add effects attributes for storage decls. #41643

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
Mar 4, 2022

Conversation

eeckstein
Copy link
Contributor

Only for accessor functions.
This is important because the clang importer sets "readonly" attributes for a getter also on the storage decl, which would propagate to the setter. Unfortunately I don't have a test case.

This PR restores the old behavior which was changed by #40957.

rdar://88876417

Only for accessor functions.
This is important because the clang importer sets "readonly" attributes for a getter also on the storage decl, which would propagate to the setter.

This PR restores the old behavior which was changed by swiftlang#40957.

Unfortunately I don't have a test case.

rdar://88876417
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein requested a review from beccadax March 3, 2022 13:09
@eeckstein eeckstein merged commit aed6c62 into swiftlang:main Mar 4, 2022
@eeckstein eeckstein deleted the fix-clang-imported-effects branch March 4, 2022 12:03
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