Commit dc974e8
committed
Fix SILCombine to preserve a release of a move-only type
The release needs to be preserved in case a user-defined deinit is
present in the released type. Checking for move-only is slightly
conservative.
Fixes rdar://109846094 ([move-only] SILCombine eliminates struct deinitialization)1 parent 77a6690 commit dc974e8
File tree
3 files changed
+46
-4
lines changed- lib
- SILOptimizer/SILCombiner
- SIL/IR
- test/SILOptimizer
3 files changed
+46
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2311 | 2311 | | |
2312 | 2312 | | |
2313 | 2313 | | |
| 2314 | + | |
| 2315 | + | |
2314 | 2316 | | |
2315 | 2317 | | |
2316 | 2318 | | |
| |||
2379 | 2381 | | |
2380 | 2382 | | |
2381 | 2383 | | |
2382 | | - | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
2383 | 2387 | | |
2384 | 2388 | | |
2385 | 2389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
818 | | - | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
819 | 824 | | |
820 | 825 | | |
821 | 826 | | |
| |||
825 | 830 | | |
826 | 831 | | |
827 | 832 | | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
828 | 838 | | |
829 | 839 | | |
830 | 840 | | |
| |||
876 | 886 | | |
877 | 887 | | |
878 | 888 | | |
879 | | - | |
| 889 | + | |
880 | 890 | | |
881 | 891 | | |
882 | 892 | | |
| |||
2297 | 2307 | | |
2298 | 2308 | | |
2299 | 2309 | | |
2300 | | - | |
| 2310 | + | |
| 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 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments