Commit e7a8fb1
Gabor Horvath
[cxx-interop] Fix exporting Swift enums with C POD associated data
These types are OK to by copied using memcpy. Previously, the generated
code assumed these types are exported swift types with all the value witness
functions.
rdar://1118125771 parent 1bd0cd7 commit e7a8fb1
File tree
2 files changed
+27
-3
lines changed- lib/PrintAsClang
- test/Interop/SwiftToCxx/stdlib
2 files changed
+27
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
475 | 477 | | |
476 | 478 | | |
477 | 479 | | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
478 | 491 | | |
479 | 492 | | |
480 | 493 | | |
| |||
588 | 601 | | |
589 | 602 | | |
590 | 603 | | |
591 | | - | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
592 | 607 | | |
593 | 608 | | |
594 | 609 | | |
| |||
755 | 770 | | |
756 | 771 | | |
757 | 772 | | |
758 | | - | |
759 | | - | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
760 | 776 | | |
761 | 777 | | |
762 | 778 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 | | |
20 | 28 | | |
0 commit comments