Commit edd9955
committed
[Runtime] Fix SwiftError handling in CVW runtime
rdar://138085348
Even though errors are ObjC boxes, they can't be tagged pointers and in fact may use that bit to store enum tags, so treating them like regular ObjC references here can cause ref count issues.1 parent 95e0a79 commit edd9955
File tree
3 files changed
+24
-13
lines changed- stdlib/public/runtime
- test/Interpreter
- Inputs
3 files changed
+24
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
253 | | - | |
254 | 252 | | |
255 | 253 | | |
256 | 254 | | |
| |||
911 | 909 | | |
912 | 910 | | |
913 | 911 | | |
914 | | - | |
915 | | - | |
916 | 912 | | |
917 | 913 | | |
918 | 914 | | |
| |||
1306 | 1302 | | |
1307 | 1303 | | |
1308 | 1304 | | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
1315 | | - | |
1316 | | - | |
1317 | | - | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
1318 | 1309 | | |
1319 | 1310 | | |
1320 | 1311 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
| 620 | + | |
620 | 621 | | |
621 | 622 | | |
622 | 623 | | |
| |||
661 | 662 | | |
662 | 663 | | |
663 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
664 | 670 | | |
665 | 671 | | |
666 | 672 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1175 | 1175 | | |
1176 | 1176 | | |
1177 | 1177 | | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
1178 | 1191 | | |
1179 | 1192 | | |
1180 | 1193 | | |
| |||
1194 | 1207 | | |
1195 | 1208 | | |
1196 | 1209 | | |
| 1210 | + | |
1197 | 1211 | | |
1198 | 1212 | | |
1199 | 1213 | | |
| |||
0 commit comments