You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You get "LLDB RPC server has crashed." I've attached a crash report.
Workaround: If I change the thing to an NSNumber? it works. Also changing the parameter to an inout works too, although then you lose the ability to specify nil as receiving variable.
The same crash occurs when passing a swift struct. So apparently there is a problem converting certain swift types into AutoreleasingUnsafeMutablePointers.
The text was updated successfully, but these errors were encountered:
You're not supposed to use AutoreleasingUnsafeMutablePointer with a type that isn't a class or Objective-C block. What would it mean to autorelease a Bool?
(This ought to be a constraint on AutoreleasingUnsafeMutablePointer; unfortunately we don't have the language features to recognize the set of types that are okay. But you should prefer UnsafeMutablePointer in Swift anyway.)
Attachment: Download
Additional Detail from JIRA
md5: 2e9c072577a6f5a8f365245e604f5601
Issue Description:
The following code crashes LLVM, paste that into a Playground:
You get "LLDB RPC server has crashed." I've attached a crash report.
Workaround: If I change the thing to an NSNumber? it works. Also changing the parameter to an inout works too, although then you lose the ability to specify nil as receiving variable.
The same crash occurs when passing a swift struct. So apparently there is a problem converting certain swift types into AutoreleasingUnsafeMutablePointers.
The text was updated successfully, but these errors were encountered: