@@ -43,7 +43,8 @@ public func usesWithUnsafeContinuation() async {
4343 let _: Int = await Builtin . withUnsafeContinuation { c in }
4444
4545 // CHECK: [[FN:%.*]] = function_ref @$s4test26usesWithUnsafeContinuationyyYaFyBcXEfU_ : $@convention(thin) (Builtin.RawUnsafeContinuation) -> ()
46- // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[FN]]
46+ // CHECK: [[TMP:%.*]] = convert_function [[FN]] : $@convention(thin) (Builtin.RawUnsafeContinuation) -> () to $@convention(thin) @noescape (Builtin.RawUnsafeContinuation) -> ()
47+ // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[TMP]]
4748 // CHECK: [[BOX:%.*]] = alloc_stack $Int
4849 // CHECK: [[CC:%.*]] = get_async_continuation_addr Int, [[BOX]] : $*Int
4950 // CHECK: apply [[CLOSURE]]([[CC]]) : $@noescape @callee_guaranteed (Builtin.RawUnsafeContinuation) -> ()
@@ -57,7 +58,8 @@ public func usesWithUnsafeContinuation() async {
5758 let _: String = await Builtin . withUnsafeContinuation { c in }
5859
5960 // CHECK: [[FN:%.*]] = function_ref @$s4test26usesWithUnsafeContinuationyyYaFyBcXEfU0_ : $@convention(thin) (Builtin.RawUnsafeContinuation) -> ()
60- // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[FN]]
61+ // CHECK: [[TMP:%.*]] = convert_function [[FN]] : $@convention(thin) (Builtin.RawUnsafeContinuation) -> () to $@convention(thin) @noescape (Builtin.RawUnsafeContinuation) -> ()
62+ // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[TMP]]
6163 // CHECK: [[BOX:%.*]] = alloc_stack $String
6264 // CHECK: [[CC:%.*]] = get_async_continuation_addr String, [[BOX]] : $*String
6365 // CHECK: apply [[CLOSURE]]([[CC]]) : $@noescape @callee_guaranteed (Builtin.RawUnsafeContinuation) -> ()
@@ -72,7 +74,8 @@ public func usesWithUnsafeContinuation() async {
7274 let _: Any = await Builtin . withUnsafeContinuation { c in }
7375
7476 // CHECK: [[FN:%.*]] = function_ref @$s4test26usesWithUnsafeContinuationyyYaFyBcXEfU1_ : $@convention(thin) (Builtin.RawUnsafeContinuation) -> ()
75- // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[FN]]
77+ // CHECK: [[TMP:%.*]] = convert_function [[FN]] : $@convention(thin) (Builtin.RawUnsafeContinuation) -> () to $@convention(thin) @noescape (Builtin.RawUnsafeContinuation) -> ()
78+ // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[TMP]]
7679 // CHECK: [[BOX:%.*]] = alloc_stack $Any
7780 // CHECK: [[CC:%.*]] = get_async_continuation_addr Any, [[BOX]] : $*Any
7881 // CHECK: apply [[CLOSURE]]([[CC]]) : $@noescape @callee_guaranteed (Builtin.RawUnsafeContinuation) -> ()
@@ -91,7 +94,8 @@ public func usesWithUnsafeThrowingContinuation() async throws {
9194 let _: Int = try await Builtin . withUnsafeThrowingContinuation { c in }
9295
9396 // CHECK: [[FN:%.*]] = function_ref @$s4test34usesWithUnsafeThrowingContinuationyyYaKFyBcXEfU_ : $@convention(thin) (Builtin.RawUnsafeContinuation) -> ()
94- // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[FN]]
97+ // CHECK: [[TMP:%.*]] = convert_function [[FN]] : $@convention(thin) (Builtin.RawUnsafeContinuation) -> () to $@convention(thin) @noescape (Builtin.RawUnsafeContinuation) -> ()
98+ // CHECK: [[CLOSURE:%.*]] = thin_to_thick_function [[TMP]]
9599 // CHECK: [[BOX:%.*]] = alloc_stack $Int
96100 // CHECK: [[CC:%.*]] = get_async_continuation_addr [throws] Int, [[BOX]] : $*Int
97101 // CHECK: apply [[CLOSURE]]([[CC]]) : $@noescape @callee_guaranteed (Builtin.RawUnsafeContinuation) -> ()
0 commit comments