We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fe2a02 commit 9168b91Copy full SHA for 9168b91
test/SILOptimizer/simplify_cfg.sil
@@ -2643,6 +2643,10 @@ bb1(%10 : $Optional<TwoCase>):
2643
switch_enum %10 : $Optional<TwoCase>, case #Optional.some!enumelt.1: bb2, case #Optional.none!enumelt: bb5
2644
2645
bb2(%1 : $TwoCase):
2646
+ // Simplification of that switch_enum crashed the compiler because
2647
+ // SILArgument::getIncomingValues returns %10 ($Optional<TwoCase>) as the
2648
+ // incoming value for %1 ($TwoCase).
2649
+ // rdar://problem/26251856
2650
switch_enum %1 : $TwoCase, case #TwoCase.First!enumelt: bb3, case #TwoCase.Second!enumelt: bb4
2651
2652
bb3:
0 commit comments