Commit ebda3e2
committed
Sema: Diagnose @backDeployed functions with missing bodies in swiftinterfaces.
A `@backDeployed` function printed in a `.swiftinterface` must have a function
body so that SILGen can emit a fallback copy to call when the back deployed
function is unavailable. Previously, the compiler would crash in SILGen when
compiling an interface containing a back deployed function without a body.
Resolves rdar://141593108.1 parent e87c1c3 commit ebda3e2
File tree
6 files changed
+83
-29
lines changed- include/swift/AST
- lib/Sema
- test
- ModuleInterface
- Serialization
- attr
6 files changed
+83
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7570 | 7570 | | |
7571 | 7571 | | |
7572 | 7572 | | |
7573 | | - | |
7574 | | - | |
7575 | | - | |
| 7573 | + | |
| 7574 | + | |
| 7575 | + | |
7576 | 7576 | | |
7577 | | - | |
7578 | | - | |
7579 | | - | |
| 7577 | + | |
| 7578 | + | |
| 7579 | + | |
| 7580 | + | |
| 7581 | + | |
| 7582 | + | |
| 7583 | + | |
7580 | 7584 | | |
7581 | 7585 | | |
7582 | 7586 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4719 | 4719 | | |
4720 | 4720 | | |
4721 | 4721 | | |
4722 | | - | |
4723 | | - | |
| 4722 | + | |
| 4723 | + | |
4724 | 4724 | | |
4725 | 4725 | | |
4726 | 4726 | | |
4727 | | - | |
4728 | | - | |
| 4727 | + | |
| 4728 | + | |
4729 | 4729 | | |
4730 | 4730 | | |
4731 | 4731 | | |
| |||
4777 | 4777 | | |
4778 | 4778 | | |
4779 | 4779 | | |
4780 | | - | |
4781 | | - | |
4782 | | - | |
4783 | | - | |
4784 | | - | |
4785 | | - | |
4786 | | - | |
4787 | | - | |
4788 | | - | |
4789 | 4780 | | |
4790 | | - | |
4791 | | - | |
4792 | | - | |
| 4781 | + | |
| 4782 | + | |
4793 | 4783 | | |
4794 | 4784 | | |
4795 | 4785 | | |
| |||
4806 | 4796 | | |
4807 | 4797 | | |
4808 | 4798 | | |
4809 | | - | |
| 4799 | + | |
| 4800 | + | |
| 4801 | + | |
4810 | 4802 | | |
4811 | 4803 | | |
4812 | | - | |
4813 | | - | |
4814 | | - | |
| 4804 | + | |
| 4805 | + | |
| 4806 | + | |
| 4807 | + | |
| 4808 | + | |
| 4809 | + | |
| 4810 | + | |
| 4811 | + | |
| 4812 | + | |
| 4813 | + | |
| 4814 | + | |
| 4815 | + | |
| 4816 | + | |
| 4817 | + | |
| 4818 | + | |
| 4819 | + | |
| 4820 | + | |
| 4821 | + | |
4815 | 4822 | | |
4816 | 4823 | | |
4817 | 4824 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
| |||
266 | 269 | | |
267 | 270 | | |
268 | 271 | | |
269 | | - | |
| 272 | + | |
270 | 273 | | |
271 | 274 | | |
272 | 275 | | |
273 | 276 | | |
274 | 277 | | |
275 | | - | |
| 278 | + | |
276 | 279 | | |
277 | 280 | | |
278 | 281 | | |
| |||
0 commit comments