Skip to content

Revert "AST: Spot fix for AbstractStorageDecl::isResilient()" #67972

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

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Aug 16, 2023

This reverts commit d5b354f. It causes miscompiles when accessing properties declared with @_originallyDefinedIn that are now defined in modules with library evolution enabled from the module that the property was originally defined in. Just because the property used to be declared in the current module doesn't mean it can bypass the stable ABI of the module that the property now belongs to.

It looks like the logic that this PR replaced is also faulty, since @_originallyDefinedIn really oughtn't factor into the resilience computation at any level, but let's unwind one level of brokenness at a time.

Fixes rdar://113935401.

This reverts commit d5b354f. It causes miscompiles when
accessing properties declared with `@_originallyDefinedIn` that are now defined in modules
with library evolution enabled from the module that the property was originally defined in.
Just because the property used to be declared in the current module doesn't mean it can
bypass the stable ABI of the module that the property now belongs to.

It looks like the logic that this PR replaced is also faulty, since `@_originallyDefinedIn`
really oughtn't factor into the resilience computation at any level, but let's unwind one
level of brokenness at a time.

Fixes rdar://113935401.
@jckarter
Copy link
Contributor Author

@swift-ci Please test

@jckarter jckarter merged commit d948213 into swiftlang:main Aug 17, 2023
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