Skip to content

[cxx-importer] Do not import pointers to non-escapable types #79697

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
Mar 4, 2025

Conversation

Xazax-hun
Copy link
Contributor

Unfortunately, Unsafe*Pointer types do not support non-escapable pointees so we do not really have anything to map these types to at the moment. Previously, importing such code resulted in crashes.

rdar://145800679

@Xazax-hun Xazax-hun added the c++ interop Feature: Interoperability with C++ label Feb 28, 2025
@Xazax-hun Xazax-hun requested a review from hnrklssn February 28, 2025 16:34
Copy link
Contributor

@egorzhdan egorzhdan left a comment

Choose a reason for hiding this comment

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

LGTM

@Xazax-hun Xazax-hun enabled auto-merge March 3, 2025 10:09
Unfortunately, Unsafe*Pointer types do not support non-escapable
pointees so we do not really have anything to map these types to at the
moment. Previously, importing such code resulted in crashes.

rdar://145800679
@Xazax-hun Xazax-hun force-pushed the gaborh/do-not-import-nonesc-pointees branch from 90b15e5 to d0c1677 Compare March 4, 2025 12:27
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

@Xazax-hun Xazax-hun merged commit 3b412ae into main Mar 4, 2025
3 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/do-not-import-nonesc-pointees branch March 4, 2025 17:26
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