Skip to content
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

[cxx-interop] Fix crash trying to export read accesors #77391

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

Xazax-hun
Copy link
Contributor

This is not yet supported, so skip exporting those accessors for now.

Fixes #77304

rdar://138944832

@Xazax-hun Xazax-hun added the c++ interop Feature: Interoperability with C++ label Nov 5, 2024
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

This is not yet supported, so skip exporting those accessors for now.

Fixes #77304

rdar://138944832
@Xazax-hun Xazax-hun force-pushed the gaborh/avoid-exporting-read-accessors branch from c3f9ccf to e00e285 Compare November 6, 2024 13:08
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

@Xazax-hun Xazax-hun merged commit 113f11c into main Nov 7, 2024
3 checks passed
@Xazax-hun Xazax-hun deleted the gaborh/avoid-exporting-read-accessors branch November 7, 2024 15:48
Xazax-hun added a commit that referenced this pull request Nov 8, 2024
Explanation: The reverse interop code assumed that there is always a synthesized get accessor for public stored properties which is not the case. This PR prevents the crash by not exporting get accessor it is not available.
Scope: C++ reverse interop.
Risk: Low, we just skip problematic operators.
Testing: Regression test added.
Issue: rdar://138944832
Reviewer: @egorzhdan
Original PR: #77391
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.

compiler crash involving Mutex
2 participants