Commit e27876c
committed
[TypeLowering] Return pseudogeneric @autoreleasing
Previously, when a pseudogeneric function returned a type parameter, it
was unowned. That resulted in invalid OSSA out of SILGen. Here, this
is fixed to use the @autoreleasing convention.
rdar://643752081 parent 39951b0 commit e27876c
File tree
4 files changed
+28
-15
lines changed- lib/SIL/IR
- test
- PrintAsObjC
- SILGen
- Inputs/usr/include
4 files changed
+28
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3908 | 3908 | | |
3909 | 3909 | | |
3910 | 3910 | | |
| 3911 | + | |
3911 | 3912 | | |
3912 | 3913 | | |
3913 | | - | |
3914 | | - | |
| 3914 | + | |
| 3915 | + | |
| 3916 | + | |
3915 | 3917 | | |
3916 | 3918 | | |
3917 | 3919 | | |
| |||
3951 | 3953 | | |
3952 | 3954 | | |
3953 | 3955 | | |
3954 | | - | |
3955 | | - | |
| 3956 | + | |
| 3957 | + | |
| 3958 | + | |
3956 | 3959 | | |
3957 | 3960 | | |
3958 | 3961 | | |
| |||
3982 | 3985 | | |
3983 | 3986 | | |
3984 | 3987 | | |
| 3988 | + | |
| 3989 | + | |
| 3990 | + | |
3985 | 3991 | | |
3986 | 3992 | | |
3987 | | - | |
3988 | | - | |
| 3993 | + | |
| 3994 | + | |
| 3995 | + | |
3989 | 3996 | | |
3990 | 3997 | | |
3991 | 3998 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 10 | | |
18 | 11 | | |
19 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
0 commit comments