@@ -43,8 +43,7 @@ public func usesWithUnsafeContinuation() async {
43
43
let _: Int = await Builtin . withUnsafeContinuation { c in }
44
44
45
45
// CHECK: [[FN:%.*]] = function_ref @$s4test26usesWithUnsafeContinuationyyYaFyBcXEfU_ : $@convention(thin) (Builtin.RawUnsafeContinuation) -> ()
46
- // CHECK: [[TMP:%.*]] = convert_function [[FN]] : $@convention(thin) (Builtin.RawUnsafeContinuation) -> () to $@convention(thin) @noescape (Builtin.RawUnsafeContinuation) -> ()
47
- // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[TMP]]
46
+ // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[FN]]
48
47
// CHECK: [[BOX:%.*]] = alloc_stack $Int
49
48
// CHECK: [[CC:%.*]] = get_async_continuation_addr Int, [[BOX]] : $*Int
50
49
// CHECK: apply [[CLOSURE]]([[CC]]) : $@noescape @callee_guaranteed (Builtin.RawUnsafeContinuation) -> ()
@@ -58,8 +57,7 @@ public func usesWithUnsafeContinuation() async {
58
57
let _: String = await Builtin . withUnsafeContinuation { c in }
59
58
60
59
// CHECK: [[FN:%.*]] = function_ref @$s4test26usesWithUnsafeContinuationyyYaFyBcXEfU0_ : $@convention(thin) (Builtin.RawUnsafeContinuation) -> ()
61
- // CHECK: [[TMP:%.*]] = convert_function [[FN]] : $@convention(thin) (Builtin.RawUnsafeContinuation) -> () to $@convention(thin) @noescape (Builtin.RawUnsafeContinuation) -> ()
62
- // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[TMP]]
60
+ // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[FN]]
63
61
// CHECK: [[BOX:%.*]] = alloc_stack $String
64
62
// CHECK: [[CC:%.*]] = get_async_continuation_addr String, [[BOX]] : $*String
65
63
// CHECK: apply [[CLOSURE]]([[CC]]) : $@noescape @callee_guaranteed (Builtin.RawUnsafeContinuation) -> ()
@@ -74,8 +72,7 @@ public func usesWithUnsafeContinuation() async {
74
72
let _: Any = await Builtin . withUnsafeContinuation { c in }
75
73
76
74
// CHECK: [[FN:%.*]] = function_ref @$s4test26usesWithUnsafeContinuationyyYaFyBcXEfU1_ : $@convention(thin) (Builtin.RawUnsafeContinuation) -> ()
77
- // CHECK: [[TMP:%.*]] = convert_function [[FN]] : $@convention(thin) (Builtin.RawUnsafeContinuation) -> () to $@convention(thin) @noescape (Builtin.RawUnsafeContinuation) -> ()
78
- // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[TMP]]
75
+ // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[FN]]
79
76
// CHECK: [[BOX:%.*]] = alloc_stack $Any
80
77
// CHECK: [[CC:%.*]] = get_async_continuation_addr Any, [[BOX]] : $*Any
81
78
// CHECK: apply [[CLOSURE]]([[CC]]) : $@noescape @callee_guaranteed (Builtin.RawUnsafeContinuation) -> ()
@@ -94,8 +91,7 @@ public func usesWithUnsafeThrowingContinuation() async throws {
94
91
let _: Int = try await Builtin . withUnsafeThrowingContinuation { c in }
95
92
96
93
// CHECK: [[FN:%.*]] = function_ref @$s4test34usesWithUnsafeThrowingContinuationyyYaKFyBcXEfU_ : $@convention(thin) (Builtin.RawUnsafeContinuation) -> ()
97
- // CHECK: [[TMP:%.*]] = convert_function [[FN]] : $@convention(thin) (Builtin.RawUnsafeContinuation) -> () to $@convention(thin) @noescape (Builtin.RawUnsafeContinuation) -> ()
98
- // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[TMP]]
94
+ // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[FN]]
99
95
// CHECK: [[BOX:%.*]] = alloc_stack $Int
100
96
// CHECK: [[CC:%.*]] = get_async_continuation_addr [throws] Int, [[BOX]] : $*Int
101
97
// CHECK: apply [[CLOSURE]]([[CC]]) : $@noescape @callee_guaranteed (Builtin.RawUnsafeContinuation) -> ()
0 commit comments