Skip to content
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

ASTMangler: skip mangling Copyable dependents #76293

Merged

Conversation

kavon
Copy link
Member

@kavon kavon commented Sep 5, 2024

Typically, a conformance that is dependent on a conformance to a marker protocol never reaches this point in the compiler, where we're mangling the metadata for an opaque return type.

But with the invertible protocols like Copyable, we do permit them, so we should avoid mangling Copyable as that's generally ABI incompatible with existing code.

resolves rdar://135310019

@kavon
Copy link
Member Author

kavon commented Sep 5, 2024

@swift-ci smoke test

Typically, a conformance that is dependent on a conformance to a marker
protocol never reaches this point in the compiler, where we're mangling
the metadata for an opaque return type.

But with the invertible protocols like Copyable, we do permit them, so
we should avoid mangling Copyable as that's generally ABI incompatible
with existing code.

resolves rdar://135310019
@kavon kavon force-pushed the ncgenerics-opaque-dependent-conformance-mangling branch from 7bb32a7 to 6f6a46f Compare September 9, 2024 21:44
@kavon
Copy link
Member Author

kavon commented Sep 9, 2024

@swift-ci smoke test

@kavon kavon enabled auto-merge September 9, 2024 21:44
@kavon kavon merged commit 034dab8 into swiftlang:main Sep 10, 2024
3 checks passed
@kavon kavon deleted the ncgenerics-opaque-dependent-conformance-mangling branch September 10, 2024 02:00
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