Skip to content

[cxx-interop] Do not crash when importing anonymous classes #60219

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 25, 2022

Conversation

egorzhdan
Copy link
Contributor

This was discovered during interop adoption in SwiftCompilerSources.

/Volumes/Projects/swift/swift/include/swift/SIL/SILNode.h:180:5 
<Spelling=/Volumes/Projects/swift/swift/include/swift/SIL/SILNode.h:171:3>: while adding SwiftName lookup table entries for clang declaration 'swift::SILNode::SharedUInt8Fields::(anonymous)'

This was discovered during interop adoption in SwiftCompilerSources.
```
/Volumes/Projects/swift/swift/include/swift/SIL/SILNode.h:180:5 <Spelling=/Volumes/Projects/swift/swift/include/swift/SIL/SILNode.h:171:3>: while adding SwiftName lookup table entries for clang declaration 'swift::SILNode::SharedUInt8Fields::(anonymous)'
```
@egorzhdan egorzhdan added the c++ interop Feature: Interoperability with C++ label Jul 25, 2022
@egorzhdan egorzhdan requested a review from zoecarver July 25, 2022 10:50
@egorzhdan
Copy link
Contributor Author

@swift-ci please smoke test

@egorzhdan egorzhdan merged commit b969195 into main Jul 25, 2022
@egorzhdan egorzhdan deleted the egorzhdan/cxx-unnamed-class branch July 25, 2022 12:53
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.

1 participant