Commit 3bf02d1
🍒[6.0][cxx-interop] Do not attempt to export read accessors to C++
The reverse interop code assumed that there is always a get accessor for
subscript which is not always the case. This PR prevents the crash by
not exporting subscript when get accessor is not availableA.
Scope: C++ reverse interop.
Risk: Low, we just skip problematic operators.
Testing: Regression test added.
Issue: rdar://134425834
Reviewer: @egorzhdan
Original PR: #761701 parent f8e35f0 commit 3bf02d1
File tree
2 files changed
+17
-3
lines changed- lib/PrintAsClang
- test/Interop/SwiftToCxx/functions
2 files changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2072 | 2072 | | |
2073 | 2073 | | |
2074 | 2074 | | |
2075 | | - | |
2076 | | - | |
2077 | | - | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
2078 | 2079 | | |
2079 | 2080 | | |
2080 | 2081 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
19 | 32 | | |
20 | 33 | | |
21 | 34 | | |
| |||
0 commit comments