Commit e7098a3
committed
[Sema] Remove
The invalid bit on PatternBindingDecl is very coarse grained, it
means any of the possible binding entries could be invalid.
Contextualization can handle invalid code anyway (e.g this is what we
do for `typeCheckBody`), so let's just avoid checking.isInvalid checks from checkAndContextualizePatternBindingInit
1 parent fef7f53 commit e7098a3
File tree
2 files changed
+1
-6
lines changed- lib/Sema
- validation-test/compiler_crashers_2_fixed
2 files changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
594 | | - | |
595 | | - | |
596 | 594 | | |
597 | 595 | | |
598 | 596 | | |
599 | 597 | | |
600 | 598 | | |
601 | 599 | | |
602 | 600 | | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | 601 | | |
607 | 602 | | |
608 | 603 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
0 commit comments