Skip to content

Commit 7b7189f

Browse files
committed
Fix test case
1 parent e8b5f1c commit 7b7189f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/SILOptimizer/constant_propagation.sil

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,8 +889,7 @@ bb0(%0 : $*MyError, %1 : $*E2<X>):
889889
// CHECK-NOT: unconditional_checked_cast_addr
890890
// CHECK: [[ALLOC_BOX:%.*]] = alloc_existential_box $Error, $E1
891891
// CHECK: [[PROJ:%.*]] = project_existential_box $E1 in [[ALLOC_BOX]] : $Error
892-
// CHECK: [[VAL:%.*]] = load %1 : $*E1
893-
// CHECK: store [[VAL]] to [[PROJ]]
892+
// CHECK: copy_addr [take] %1 to [initialization] [[PROJ]]
894893
// CHECK: store [[ALLOC_BOX]] to %0 : $*Error
895894
// CHECK: return
896895
sil @replace_unconditional_check_cast_addr_for_type_to_error_existential : $@convention(thin) (@in E1) -> (@out Error) {

0 commit comments

Comments
 (0)