mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The ObjC generator previously preserved a subtle difference between 'unowned' and 'unowned(unsafe)' / Unmanaged by printing the former as 'assign' and the latter as 'unsafe_unretained'. Upstream Clang, however, has gotten a new warning to discourage the use of 'assign' with reference-countable types at all. Since it was always a subtle distinction, just go with the new convention and print 'unsafe_unretained' for 'unowned' properties as well. rdar://problem/44290715
7.4 KiB
7.4 KiB