Skip to content

Commit 63adabb

Browse files
committed
Concurrency: Address new -strict-memory-safety warnings.
1 parent 8e0a389 commit 63adabb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/Concurrency/Executor.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ extension SerialExecutor {
377377
#if SWIFT_CONCURRENCY_USES_DISPATCH
378378
@available(SwiftStdlib 6.2, *)
379379
private var _dispatchQueue: OpaquePointer? {
380-
return _getDispatchQueueForExecutor(self.asUnownedSerialExecutor())
380+
return unsafe _getDispatchQueueForExecutor(self.asUnownedSerialExecutor())
381381
}
382382
#endif
383383

@@ -387,8 +387,8 @@ extension SerialExecutor {
387387
return true
388388
}
389389
#if SWIFT_CONCURRENCY_USES_DISPATCH
390-
if let rhsQueue = rhs._dispatchQueue {
391-
if let ourQueue = _dispatchQueue, ourQueue == rhsQueue {
390+
if let rhsQueue = unsafe rhs._dispatchQueue {
391+
if let ourQueue = unsafe _dispatchQueue, ourQueue == rhsQueue {
392392
return true
393393
}
394394
return false

0 commit comments

Comments
 (0)