Skip to content

🍒[cxx-interop] Fix extra indirection when exporting CFData parameters #74663

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
Jul 5, 2024

Conversation

Xazax-hun
Copy link
Contributor

Explanation:
The clang nodes associated with Swift's Core Foundation types are already represented by a pointer. The interop code does not need to add an extra layer of indirection in those cases.
Scope: C++ Interop
Risk: Very targeted fix for a scenario that was broken before, the code change only affects that scenario.
Testing: Added a regression test.
Issue: rdar://119840281
Reviewer: @egorzhdan
Original PR: #74330

[cxx-interop] Fix extra indirection when exporting CFData arguments
@Xazax-hun Xazax-hun added the c++ interop Feature: Interoperability with C++ label Jun 24, 2024
@Xazax-hun Xazax-hun requested a review from a team as a code owner June 24, 2024 17:39
@Xazax-hun
Copy link
Contributor Author

@swift-ci please test

@Xazax-hun Xazax-hun requested a review from egorzhdan June 24, 2024 17:41
@Xazax-hun Xazax-hun changed the title 🍒[cxx-interop] Fix extra indirection when exporting CFData arguments 🍒[cxx-interop] Fix extra indirection when exporting CFData parameters Jun 24, 2024
Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should work in the short term. I wonder if we shouldn't just ask if the type is a pointer type in general, though.

@Xazax-hun Xazax-hun merged commit 289241f into release/6.0 Jul 5, 2024
5 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/core-foundation-types-cherry-pick branch July 5, 2024 15:18
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++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants