Skip to content

Commit e32f817

Browse files
authored
Merge pull request #65600 from tshortli/concurrency-module-condfails-5.9
[5.9] Concurrency: Make _Concurrency module interface parsable by older compilers
2 parents c928dbe + cd250df commit e32f817

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/BackDeployConcurrency/TaskLocal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public final class TaskLocal<Value: Sendable>: Sendable, CustomStringConvertible
172172
// check if we're not trying to bind a value from an illegal context; this may crash
173173
_checkIllegalTaskLocalBindingWithinWithTaskGroup(file: file, line: line)
174174

175-
_taskLocalValuePush(key: key, value: consume valueDuringOperation)
175+
_taskLocalValuePush(key: key, value: valueDuringOperation)
176176
do {
177177
let result = try await operation()
178178
_taskLocalValuePop()

stdlib/public/Concurrency/TaskLocal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public final class TaskLocal<Value: Sendable>: Sendable, CustomStringConvertible
172172
// check if we're not trying to bind a value from an illegal context; this may crash
173173
_checkIllegalTaskLocalBindingWithinWithTaskGroup(file: file, line: line)
174174

175-
_taskLocalValuePush(key: key, value: consume valueDuringOperation)
175+
_taskLocalValuePush(key: key, value: valueDuringOperation)
176176
do {
177177
let result = try await operation()
178178
_taskLocalValuePop()

0 commit comments

Comments
 (0)