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
In light of the invocation limits placed on space subtraction, this grossly incorrect check is being dropped.
Resolves a source of miscompiles in mostly machine-generated code
including SR-6652 and SR-6316.
switch(OverlyLargeSpaceEnum.case1,OverlyLargeSpaceEnum.case2){ // expected-error {{the compiler is unable to check that this switch is exhaustive in reasonable time}}
461
-
// expected-note@-1 {{do you want to add a default clause?}}
switch(OverlyLargeSpaceEnum.case1,OverlyLargeSpaceEnum.case2){ // expected-error {{the compiler is unable to check that this switch is exhaustive in reasonable time}}
476
-
case(.case0, _):returntrue
477
-
case(.case1, _):returntrue
478
-
case(.case2, _):returntrue
479
-
case(.case3, _):returntrue
480
-
case(.case4, _):returntrue
481
-
case(.case5, _):returntrue
482
-
case(.case6, _):returntrue
483
-
case(.case7, _):returntrue
484
-
case(.case8, _):returntrue
485
-
case(.case9, _):returntrue
486
-
case(.case10, _):returntrue
488
+
case(.case0,.case0):returntrue
489
+
case(.case1,.case1):returntrue
490
+
case(.case2,.case2):returntrue
491
+
case(.case3,.case3):returntrue
492
+
case(.case4,.case4):returntrue
493
+
case(.case5,.case5):returntrue
494
+
case(.case6,.case6):returntrue
495
+
case(.case7,.case7):returntrue
496
+
case(.case8,.case8):returntrue
497
+
case(.case9,.case9):returntrue
498
+
case(.case10,.case10):returntrue
499
+
case(.case11,.case11):returntrue
500
+
case(.case12,.case12):returntrue
501
+
case(.case13,.case13):returntrue
502
+
case(.case14,.case14):returntrue
503
+
case(.case15,.case15):returntrue
487
504
@unknowndefault:returnfalse // expected-note {{remove '@unknown' to handle remaining values}} {{3-12=}}
0 commit comments