mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Kill off _isUniquelyReferenced
It was doing an unsafeBitCast and possibly not managing lifetimes; replace it with more-typesafe and memory-safe calls where possible. Swift SVN r22779
This commit is contained in:
@@ -237,7 +237,7 @@ struct _SliceBuffer<T> : _ArrayBufferType {
|
||||
}
|
||||
|
||||
mutating func isUniquelyReferenced() -> Bool {
|
||||
return Swift._isUniquelyReferenced(&owner)
|
||||
return isUniquelyReferencedNonObjC(&owner)
|
||||
}
|
||||
|
||||
/// Access the element at `position`.
|
||||
|
||||
Reference in New Issue
Block a user