@@ -43,8 +43,7 @@ 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: [[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]]
4847 // CHECK: [[BOX:%.*]] = alloc_stack $Int
4948 // CHECK: [[CC:%.*]] = get_async_continuation_addr Int, [[BOX]] : $*Int
5049 // CHECK: apply [[CLOSURE]]([[CC]]) : $@noescape @callee_guaranteed (Builtin.RawUnsafeContinuation) -> ()
@@ -58,8 +57,7 @@ public func usesWithUnsafeContinuation() async {
5857 let _: String = await Builtin . withUnsafeContinuation { c in }
5958
6059 // 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]]
6361 // CHECK: [[BOX:%.*]] = alloc_stack $String
6462 // CHECK: [[CC:%.*]] = get_async_continuation_addr String, [[BOX]] : $*String
6563 // CHECK: apply [[CLOSURE]]([[CC]]) : $@noescape @callee_guaranteed (Builtin.RawUnsafeContinuation) -> ()
@@ -74,8 +72,7 @@ public func usesWithUnsafeContinuation() async {
7472 let _: Any = await Builtin . withUnsafeContinuation { c in }
7573
7674 // 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]]
7976 // CHECK: [[BOX:%.*]] = alloc_stack $Any
8077 // CHECK: [[CC:%.*]] = get_async_continuation_addr Any, [[BOX]] : $*Any
8178 // CHECK: apply [[CLOSURE]]([[CC]]) : $@noescape @callee_guaranteed (Builtin.RawUnsafeContinuation) -> ()
@@ -94,8 +91,7 @@ public func usesWithUnsafeThrowingContinuation() async throws {
9491 let _: Int = try await Builtin . withUnsafeThrowingContinuation { c in }
9592
9693 // 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]]
9995 // CHECK: [[BOX:%.*]] = alloc_stack $Int
10096 // CHECK: [[CC:%.*]] = get_async_continuation_addr [throws] Int, [[BOX]] : $*Int
10197 // CHECK: apply [[CLOSURE]]([[CC]]) : $@noescape @callee_guaranteed (Builtin.RawUnsafeContinuation) -> ()
0 commit comments