Skip to content

AST: Fix ReplaceOpaqueTypesWithUnderlyingTypes to consider the curren… #71120

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
Jan 25, 2024

Conversation

hjyamauchi
Copy link
Contributor

…t resilience expansion in non resilient mode

When we decide which access level we can allow for types we need to consider the resilience expansion context. 'internal' visibility cannot be allowed to be looked through in inlineable code as an external module does not have visiblity to such a symbol.

rdar://119725428

(Cherry picked from commit 8d649a2)

…t resilience expansion in non resilient mode

When we decide which access level we can allow for types we need to
consider the resilience expansion context. 'internal' visibility cannot
be allowed to be looked through in inlineable code as an external
module does not have visiblity to such a symbol.

rdar://119725428

(Cherry picked from commit 8d649a2)
@hjyamauchi hjyamauchi requested a review from a team as a code owner January 24, 2024 20:14
@hjyamauchi hjyamauchi requested a review from compnerd January 24, 2024 20:14
@compnerd
Copy link
Member

@swift-ci please test

@compnerd
Copy link
Member

Explanation: Ensure that private types are not leaked across inlinable boundaries.
Scope: Fixes the inlining behaviour of opaque types but maintains source compatibility. It fixes an ABI issue where internal types may be leaked.
Issue:
Risk: The fix impacts inlinability. It may reduce inlinability but would correctly prevent internal types from being leaked.
Testing: Built a large private codebase with the change applied.
Reviewer: @aschwaighofer

@compnerd
Copy link
Member

CC: @DougGregor

@DougGregor
Copy link
Member

Original PR is #70770

@hjyamauchi hjyamauchi merged commit 5c92abe into swiftlang:release/5.10 Jan 25, 2024
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.

4 participants