mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
stdlib: Make isUniquelyReferenced shims properly return bool.
rdar://problem/18573806 is fixed. Swift SVN r23547
This commit is contained in:
@@ -40,7 +40,7 @@ internal func _isUniquelyReferenced_native(
|
||||
inout x: Builtin.NativeObject
|
||||
) -> Bool {
|
||||
let p = UnsafePointer<_HeapObject>(Builtin.bridgeToRawPointer(x))
|
||||
let result = _swift_isUniquelyReferenced_nonNull_native(p) != 0
|
||||
let result = _swift_isUniquelyReferenced_nonNull_native(p)
|
||||
Builtin.fixLifetime(x)
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user