swift
93e1c787 - [6.2][cxx-interop] Fix a crash when exposing @objc Swift classes

Commit
124 days ago
[6.2][cxx-interop] Fix a crash when exposing @objc Swift classes 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
Author
Committer
Gabor Horvath
Parents
Loading