Skip to content

[cxx-interop] Avoid treating some Obj-C types as foreign reference types #73792

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
May 22, 2024

Conversation

egorzhdan
Copy link
Contributor

This makes sure we don't apply logic that is specific to C++ reference types to Objective-C types.

Previously we were mistakenly treating some Objective-C types as foreign reference types. This meant that IRGen would try to emit calls to custom lifetime operations. This should not happen for non-C++ types.

rdar://128447046

@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label May 21, 2024
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

This makes sure we don't apply logic that is specific to C++ reference types to Objective-C types.

Previously we were mistakenly treating some Objective-C types as foreign reference types. This meant that IRGen would try to emit calls to custom lifetime operations. This should not happen for non-C++ types.

rdar://128447046
@egorzhdan egorzhdan force-pushed the egorzhdan/is-frt-check branch from 8d8ffc8 to 9f9fdd9 Compare May 21, 2024 19:45
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@atrick
Copy link
Contributor

atrick commented May 22, 2024

Note that this is still blocking Swift PR testing.

@egorzhdan egorzhdan marked this pull request as ready for review May 22, 2024 15:30
@atrick atrick merged commit 4a1662d into main May 22, 2024
5 checks passed
@atrick atrick deleted the egorzhdan/is-frt-check branch May 22, 2024 15:31
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.

2 participants