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:
@@ -41,7 +41,7 @@ internal func NS_Swift_performErrorRecoverySelector(
|
||||
delegate: AnyObject?,
|
||||
selector: Selector,
|
||||
success: ObjCBool,
|
||||
contextInfo: UnsafeMutableRawPointer?)
|
||||
contextInfo: UnsafeMutablePointer<Void>?)
|
||||
|
||||
/// Class that implements the informal protocol
|
||||
/// NSErrorRecoveryAttempting, which is used by NSError when it
|
||||
@@ -52,7 +52,7 @@ class _NSErrorRecoveryAttempter {
|
||||
optionIndex recoveryOptionIndex: Int,
|
||||
delegate: AnyObject?,
|
||||
didRecoverSelector: Selector,
|
||||
contextInfo: UnsafeMutableRawPointer?) {
|
||||
contextInfo: UnsafeMutablePointer<Void>?) {
|
||||
let error = nsError as Error as! RecoverableError
|
||||
error.attemptRecovery(optionIndex: recoveryOptionIndex) { success in
|
||||
NS_Swift_performErrorRecoverySelector(
|
||||
|
||||
Reference in New Issue
Block a user