mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Runtime] Add ObjC support to isKnownUniquelyReferenced.
Add code to support detecting uniquely referenced Objective-C and Core Foundation objects. rdar://47902425 rdar://66805490
This commit is contained in:
@@ -108,7 +108,7 @@ extension _ArrayBuffer {
|
||||
if !_isClassOrObjCExistential(Element.self) {
|
||||
return _storage.isUniquelyReferencedUnflaggedNative()
|
||||
}
|
||||
return _storage.isUniquelyReferencedNative() && _isNative
|
||||
return _storage.isUniquelyReferencedNative()
|
||||
}
|
||||
|
||||
/// Returns `true` and puts the buffer in a mutable state iff the buffer's
|
||||
|
||||
Reference in New Issue
Block a user