Commit 6236b25
authored
[Sema] Fixes for mutability handling in property wrappers (swiftlang#76357)
Prevents a crash when a parameter references an invalid property wrapper. The original code assumed that mutability information would always be available, but this assumption fails when the property wrapper is invalid
Resolves swiftlang#656401 parent 854298a commit 6236b25
File tree
2 files changed
+28
-13
lines changed- lib/Sema
- validation-test/Sema/type_checker_crashers_fixed
2 files changed
+28
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2816 | 2816 | | |
2817 | 2817 | | |
2818 | 2818 | | |
2819 | | - | |
2820 | | - | |
2821 | | - | |
2822 | | - | |
2823 | | - | |
2824 | | - | |
2825 | | - | |
| 2819 | + | |
2826 | 2820 | | |
2827 | 2821 | | |
2828 | 2822 | | |
2829 | | - | |
| 2823 | + | |
2830 | 2824 | | |
2831 | | - | |
2832 | | - | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
2833 | 2830 | | |
2834 | 2831 | | |
2835 | 2832 | | |
2836 | 2833 | | |
2837 | | - | |
2838 | | - | |
| 2834 | + | |
| 2835 | + | |
2839 | 2836 | | |
2840 | | - | |
| 2837 | + | |
2841 | 2838 | | |
2842 | 2839 | | |
2843 | 2840 | | |
| 2841 | + | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
2844 | 2849 | | |
2845 | 2850 | | |
2846 | 2851 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments