mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
implement SE 184: add allocation methods to Unsafe buffer pointers, drop all parameters from deallocation, adjust namings, and add repeated-value assignment methods
This commit is contained in:
committed by
Andrew Trick
parent
c7d33e70d3
commit
c85880899d
@@ -107,8 +107,8 @@ public func _stdlib_pthread_join<Result>(
|
||||
let threadResultPtr = threadResultRawPtr!.assumingMemoryBound(
|
||||
to: Result.self)
|
||||
let threadResult = threadResultPtr.pointee
|
||||
threadResultPtr.deinitialize()
|
||||
threadResultPtr.deallocate(capacity: 1)
|
||||
threadResultPtr.deinitialize(count: 1)
|
||||
threadResultPtr.deallocate()
|
||||
return (result, threadResult)
|
||||
} else {
|
||||
return (result, nil)
|
||||
|
||||
Reference in New Issue
Block a user