Skip to content

Commit bed3c4b

Browse files
committed
Fix ABI regression in task groups due to Sendable requirements.
Top-level functions still encode inferred requirements in the mangled name. In this case, `Sendable` has no ABI impact beyond the effect on the mangled name, so fix the mangled names to maintain ABI. Fixes rdar://83617067.
1 parent 8866a2d commit bed3c4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/Concurrency/TaskGroup.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ import Swift
6262
/// - the group will await any not yet complete tasks,
6363
/// - once the `withTaskGroup` returns the group is guaranteed to be empty.
6464
@available(SwiftStdlib 5.5, *)
65+
@_silgen_name("_$ss13withTaskGroup2of9returning4bodyq_xm_q_mq_ScGyxGzYaXEtYar0_lF")
6566
@inlinable
6667
public func withTaskGroup<ChildTaskResult, GroupResult>(
6768
of childTaskResultType: ChildTaskResult.Type,
@@ -141,6 +142,7 @@ public func withTaskGroup<ChildTaskResult, GroupResult>(
141142
/// - if the body throws:
142143
/// - all tasks remaining in the group will be automatically cancelled.
143144
@available(SwiftStdlib 5.5, *)
145+
@_silgen_name("_$ss21withThrowingTaskGroup2of9returning4bodyq_xm_q_mq_Scgyxs5Error_pGzYaKXEtYaKr0_lF")
144146
@inlinable
145147
public func withThrowingTaskGroup<ChildTaskResult, GroupResult>(
146148
of childTaskResultType: ChildTaskResult.Type,

0 commit comments

Comments
 (0)