@@ -26,11 +26,11 @@ struct NC : ~Copyable {
26
26
sil [ossa] @consume_move_only : $@convention(thin) (@guaranteed C) -> () {
27
27
bb0(%c : @guaranteed $C):
28
28
specify_test "canonicalize_function_argument @argument"
29
- %copy = copy_value %c
30
- %nc = struct $NC (%copy)
29
+ %copy = copy_value %c : $C
30
+ %nc = struct $NC (%copy : $C )
31
31
apply undef(%nc) : $@convention(thin) (@owned NC) -> ()
32
32
%retval = tuple ()
33
- return %retval
33
+ return %retval : $()
34
34
}
35
35
36
36
// CHECK-LABEL: begin running test {{.*}} on borrow_move_only
@@ -44,12 +44,12 @@ bb0(%c : @guaranteed $C):
44
44
sil [ossa] @borrow_move_only : $@convention(thin) (@guaranteed C) -> () {
45
45
bb0(%c : @guaranteed $C):
46
46
specify_test "canonicalize_function_argument @argument"
47
- %copy = copy_value %c
48
- %nc = struct $NC (%copy)
47
+ %copy = copy_value %c : $C
48
+ %nc = struct $NC (%copy : $C )
49
49
apply undef(%nc) : $@convention(thin) (@guaranteed NC) -> ()
50
- destroy_value %nc
50
+ destroy_value %nc : $NC
51
51
%retval = tuple ()
52
- return %retval
52
+ return %retval : $()
53
53
}
54
54
55
55
// CHECK-LABEL: begin running test {{.*}} on consume_and_borrow_move_only
@@ -67,13 +67,13 @@ bb0(%c : @guaranteed $C):
67
67
sil [ossa] @consume_and_borrow_move_only : $@convention(thin) (@guaranteed C) -> () {
68
68
bb0(%c : @guaranteed $C):
69
69
specify_test "canonicalize_function_argument @argument"
70
- %copy1 = copy_value %c
71
- %nc1 = struct $NC (%copy1)
70
+ %copy1 = copy_value %c : $C
71
+ %nc1 = struct $NC (%copy1 : $C )
72
72
apply undef(%nc1) : $@convention(thin) (@guaranteed NC) -> ()
73
- destroy_value %nc1
74
- %copy2 = copy_value %c
75
- %nc2 = struct $NC (%copy2)
73
+ destroy_value %nc1 : $NC
74
+ %copy2 = copy_value %c : $C
75
+ %nc2 = struct $NC (%copy2 : $C )
76
76
apply undef(%nc2) : $@convention(thin) (@owned NC) -> ()
77
77
%retval = tuple ()
78
- return %retval
78
+ return %retval : $()
79
79
}
0 commit comments