Commit 0c909a8
Gabor Horvath
[cxx-interop] Basic support for anonymous structs with non-copyable fields
Anonymous structs cannot be copied or moved, these operations only can
happen to their enclosing non-anonymous types. Stop trying to emit
special member functions and value witness tables for these structs.1 parent 6e56c24 commit 0c909a8
File tree
4 files changed
+23
-2
lines changed- lib
- ClangImporter
- IRGen
- test/Interop/Cxx/class/move-only
- Inputs
4 files changed
+23
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3112 | 3112 | | |
3113 | 3113 | | |
3114 | 3114 | | |
3115 | | - | |
| 3115 | + | |
| 3116 | + | |
3116 | 3117 | | |
3117 | 3118 | | |
3118 | 3119 | | |
3119 | | - | |
| 3120 | + | |
3120 | 3121 | | |
3121 | 3122 | | |
3122 | 3123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6940 | 6940 | | |
6941 | 6941 | | |
6942 | 6942 | | |
| 6943 | + | |
| 6944 | + | |
| 6945 | + | |
| 6946 | + | |
6943 | 6947 | | |
6944 | 6948 | | |
6945 | 6949 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
59 | 71 | | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
73 | 77 | | |
0 commit comments