Skip to content

Conversation

@Xazax-hun
Copy link
Contributor

@Xazax-hun Xazax-hun commented Jul 3, 2025

Explanation: There was a null pointer dereference in reverse interop when we wanted to expose an ObjC class written in Swift. There was a crash during generating the scaffolding we do for Clang types. Since the type is written in Swift, no such scaffolding is needed, this patch skips this operation avoiding the null dereference.
Scope: Reverse C++ interop when exposing @objc classes written in Swift.
Issues: rdar://154252454
Original PRs: #82684
Risk: Low, the fix is narrow to the affected scenario. Testing: Added a compiler test.
Reviewers: @egorzhdan

Explanation: There was a null pointer dereference in reverse interop
when we wanted to expose an ObjC class written in Swift. There was a
crash during generating the scaffolding we do for Clang types. Since
the type is written in Swift, no such scaffolding is needed, this patch
skips this operation avoiding the null dereference.
Scope: Reverse C++ interop when exposing @objc classes written in Swift.
Issues: rdar://154252454
Original PRs: swiftlang#82684
Risk: Low, the fix is narrow to the affected scenario.
Testing: Added a compiler test.
Reviewers: @egorzhdan
@Xazax-hun Xazax-hun requested review from DougGregor and egorzhdan July 3, 2025 08:31
@Xazax-hun Xazax-hun requested a review from a team as a code owner July 3, 2025 08:31
@Xazax-hun Xazax-hun added c++ interop Feature: Interoperability with C++ 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Jul 3, 2025
@Xazax-hun
Copy link
Contributor Author

@swift-ci please test

@Xazax-hun Xazax-hun merged commit 66d905e into swiftlang:release/6.2 Jul 3, 2025
5 checks passed
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++ 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants