mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We were missing -_tryRetain, -_isDeallocating, -allowsWeakReference and -retainWeakReference implementations on SwiftObject, so forming an ObjC weak reference to a pure Swift object always failed and produced a nil reference. Fixes rdar://problem/18637774. This can be reapplied now that we properly call objc_destructInstance on deallocation. Swift SVN r23070