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:
@@ -56,7 +56,7 @@ extension NSString : ExpressibleByStringLiteral {
|
||||
var immutableResult: NSString
|
||||
if value.hasPointerRepresentation {
|
||||
immutableResult = NSString(
|
||||
bytesNoCopy: UnsafeMutableRawPointer(mutating: value.utf8Start),
|
||||
bytesNoCopy: UnsafeMutablePointer<Void>(value.utf8Start),
|
||||
length: Int(value.utf8CodeUnitCount),
|
||||
encoding: value.isASCII ? String.Encoding.ascii.rawValue : String.Encoding.utf8.rawValue,
|
||||
freeWhenDone: false)!
|
||||
|
||||
Reference in New Issue
Block a user