mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "Migrate from UnsafePointer<Void> to UnsafeRawPointer. (#3724)"
This reverts commit ece0951924.
This results in lldb failues on linux that I can't readily debug.
Backing out until they can be resolved.
This commit is contained in:
@@ -1486,13 +1486,13 @@ extension ${Self} : CustomStringConvertible, CustomDebugStringConvertible {
|
||||
extension ${Self} {
|
||||
@_versioned
|
||||
@_transparent
|
||||
internal func _cPointerArgs() -> (AnyObject?, UnsafeRawPointer?) {
|
||||
internal func _cPointerArgs() -> (AnyObject?, UnsafePointer<Void>?) {
|
||||
let p = _baseAddressIfContiguous
|
||||
if _fastPath(p != nil || isEmpty) {
|
||||
return (_owner, UnsafeRawPointer(p))
|
||||
return (_owner, UnsafePointer(p))
|
||||
}
|
||||
let n = ContiguousArray(self._buffer)._buffer
|
||||
return (n.owner, UnsafeRawPointer(n.firstElementAddress))
|
||||
return (n.owner, UnsafePointer(n.firstElementAddress))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user