Commit 17ef2f6
Gabor Horvath
[cxx-interop] Make SWIFT_RETURNS_INDEPENDENT_VALUE imply immortal lifetime
The semantics of returning independent value already matches what
immortal lifetimes are within Swift. This patch makes sure this
annotation works as expected with non-escapable types.
rdar://1376716421 parent 8e2a033 commit 17ef2f6
File tree
2 files changed
+21
-5
lines changed- lib/ClangImporter
- test/Interop/Cxx/class
2 files changed
+21
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3854 | 3854 | | |
3855 | 3855 | | |
3856 | 3856 | | |
| 3857 | + | |
| 3858 | + | |
| 3859 | + | |
| 3860 | + | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
| 3864 | + | |
| 3865 | + | |
| 3866 | + | |
| 3867 | + | |
| 3868 | + | |
3857 | 3869 | | |
3858 | 3870 | | |
3859 | 3871 | | |
| |||
3866 | 3878 | | |
3867 | 3879 | | |
3868 | 3880 | | |
3869 | | - | |
3870 | | - | |
| 3881 | + | |
| 3882 | + | |
3871 | 3883 | | |
3872 | 3884 | | |
3873 | 3885 | | |
| |||
3907 | 3919 | | |
3908 | 3920 | | |
3909 | 3921 | | |
3910 | | - | |
3911 | | - | |
| 3922 | + | |
3912 | 3923 | | |
3913 | 3924 | | |
3914 | 3925 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| |||
86 | 89 | | |
87 | 90 | | |
88 | 91 | | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
| 109 | + | |
105 | 110 | | |
0 commit comments