Commit 7629fbd
committed
[Sema] Quick fix for non-copyable type resolution crash
Add a guard to make sure we don't attempt to check for Copyable
conformance if the type contains type variables. This matches the
existing behavior where we won't check for unbound generic types.
Neither behavior is correct since we won't do the proper check once
the generic type is opened, but this at least makes the behavior
consistent and fixes the crash. It's also a very low risk fix that
can be cherry-picked.
rdar://1522871781 parent f449b7b commit 7629fbd
File tree
4 files changed
+19
-1
lines changed- lib/Sema
- test/Sema
- validation-test/compiler_crashers_2_fixed
4 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3958 | 3958 | | |
3959 | 3959 | | |
3960 | 3960 | | |
| 3961 | + | |
3961 | 3962 | | |
3962 | | - | |
| 3963 | + | |
3963 | 3964 | | |
3964 | 3965 | | |
3965 | 3966 | | |
| |||
5709 | 5710 | | |
5710 | 5711 | | |
5711 | 5712 | | |
| 5713 | + | |
5712 | 5714 | | |
5713 | 5715 | | |
5714 | 5716 | | |
| |||
5895 | 5897 | | |
5896 | 5898 | | |
5897 | 5899 | | |
| 5900 | + | |
5898 | 5901 | | |
5899 | 5902 | | |
5900 | 5903 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments