Skip to content

[interop][SwiftToCxx] do not assert when emitting non-resilient struc… #65352

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

hyp
Copy link
Contributor

@hyp hyp commented Apr 21, 2023

…ts with opaque layout

(cherry picked from commit e6e43c6)

Explanation: Swift value types with opaque layout but who are not resilient should be emitted as types with opaque layout in the C++ section of the generated header. Right now this causes an assertion when generating a value type like this, but this assertion can be removed as we can handle this case correctly as we can generate an interface for a type with opaque layout.
Scope: Swift's and C++ interoperability, generated header generator.
Risk: Low.
Testing: Swift unit tests.
Reviewer: @zoecarver

…ts with opaque layout

(cherry picked from commit e6e43c6)
@hyp hyp added the c++ interop Feature: Interoperability with C++ label Apr 21, 2023
@hyp hyp requested a review from a team as a code owner April 21, 2023 16:43
@hyp
Copy link
Contributor Author

hyp commented Apr 21, 2023

@swift-ci please test

@hyp
Copy link
Contributor Author

hyp commented Apr 21, 2023

@swift-ci please test source compatibility

@hyp hyp merged commit afa80d9 into swiftlang:release/5.9 Apr 24, 2023
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++ 🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants