Skip to content

[Clang importer] Fix lookup of custom ref-counting ops in bridging header #68214

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

DougGregor
Copy link
Member

@DougGregor DougGregor commented Aug 30, 2023

Lookup for custom reference counting operators into a precompiled bridging header was causing a crash because there is no "underlying module" in which to perform the lookup. Handle the lookup at the level of the main Swift module for such cases, filtering out declarations not coming from Clang.

Fixes rdar://114495840, cherry-picked from #68213

…aders

Lookup for custom reference counting operators into a precompiled bridging
header was causing a crash because there is no "underlying module" in which
to perform the lookup. Handle the lookup at the level of the main Swift
module for such cases, filtering out declarations not coming from Clang.

Fixes rdar://114495840.
@DougGregor DougGregor requested a review from a team as a code owner August 30, 2023 17:03
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor
Copy link
Member Author

@swift-ci please test Linux

@DougGregor DougGregor merged commit 0d3c43c into swiftlang:release/5.9 Aug 31, 2023
@DougGregor DougGregor deleted the custom-ref-count-ops-compiled-pch-5.9 branch August 31, 2023 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants