You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This presents a regression in diagnostic quality that is definitely
worth it not to lie to SILGen about whether a switch is covered or not.
At the same time, disable SIL’s unreachable diagnostic for ‘default’
clauses which would previously cause a warning to be emitted if the
default was proven to be unreachable. This analysis is incomplete
anyways and can be done by Sema in the future if we desire.
switch(OverlyLargeSpaceEnum.case1,OverlyLargeSpaceEnum.case2){ // expected-error {{switch must be exhaustive}}
447
+
switch(OverlyLargeSpaceEnum.case1,OverlyLargeSpaceEnum.case2){ // expected-error {{analysis of uncovered switch statement is too complex to perform in a reasonable amount of time}}
448
448
// expected-note@-1 {{do you want to add a default clause?}}
switch(OverlyLargeSpaceEnum.case1,OverlyLargeSpaceEnum.case2){ // expected-error {{switch must be exhaustive}}
463
+
switch(OverlyLargeSpaceEnum.case1,OverlyLargeSpaceEnum.case2){ // expected-error {{analysis of uncovered switch statement is too complex to perform in a reasonable amount of time}}
465
464
// expected-note@-1 {{do you want to add a default clause?}}
// SR-6316: Size heuristic is insufficient to catch space covering when the
563
565
// covered space size is greater than or equal to the master space size.
564
566
func largeSpaceMatch(_ x:Bool){
565
-
switch(x,(x, x, x, x),(x, x, x, x)){ // expected-error {{switch must be exhaustive}}
567
+
switch(x,(x, x, x, x),(x, x, x, x)){ // expected-error {{analysis of uncovered switch statement is too complex to perform in a reasonable amount of time}}
566
568
// expected-note@-1 {{do you want to add a default clause?}}
0 commit comments