mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
cleaning up initializePointee/deinitializePointee, error messages and comments
This commit is contained in:
@@ -42,7 +42,7 @@ internal class PthreadBlockContextImpl<Argument, Result>: PthreadBlockContext {
|
||||
|
||||
override func run() -> UnsafeMutablePointer<Void> {
|
||||
let result = UnsafeMutablePointer<Result>(allocatingCapacity: 1)
|
||||
result.initializeMemory(block(arg))
|
||||
result.initializePointee(block(arg))
|
||||
return UnsafeMutablePointer(result)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user