Skip to content

Commit 9168b91

Browse files
committed
add a comment to the SimplifyCFG test
1 parent 5fe2a02 commit 9168b91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/SILOptimizer/simplify_cfg.sil

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2643,6 +2643,10 @@ bb1(%10 : $Optional<TwoCase>):
26432643
switch_enum %10 : $Optional<TwoCase>, case #Optional.some!enumelt.1: bb2, case #Optional.none!enumelt: bb5
26442644

26452645
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
26462650
switch_enum %1 : $TwoCase, case #TwoCase.First!enumelt: bb3, case #TwoCase.Second!enumelt: bb4
26472651

26482652
bb3:

0 commit comments

Comments
 (0)