Skip to content

[SILGen] Handle marker existentials in emitCBridgedToNativeValue. #70553

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
Dec 20, 2023

Conversation

hborla
Copy link
Member

@hborla hborla commented Dec 20, 2023

The id-to-Any bridging path in emitCBridgedToNativeValue was not taken when the native type was a marker existential such as any Sendable, which would lead to crashes when emitting references to imported properties marked with __attribute__((swift_attr("@Sendable"))).

Resolves rdar://119708690

@hborla
Copy link
Member Author

hborla commented Dec 20, 2023

@swift-ci please smoke test

@hborla hborla merged commit df858a5 into swiftlang:main Dec 20, 2023
@hborla hborla deleted the bridge-to-sendable branch December 20, 2023 14:10
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.

2 participants