mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] destroy redundant property
Swift SVN r22985
This commit is contained in:
@@ -143,7 +143,7 @@ internal func _arrayConditionalBridgeElements<SourceElement, TargetElement>(
|
||||
var buf = _ContiguousArrayBuffer<TargetElement>(
|
||||
count: source.count, minimumCapacity: 0)
|
||||
|
||||
var p = buf._unsafeElementStorage
|
||||
var p = buf.baseAddress
|
||||
|
||||
ElementwiseBridging:
|
||||
do {
|
||||
@@ -160,7 +160,7 @@ ElementwiseBridging:
|
||||
while false
|
||||
|
||||
// Don't destroy anything we never created.
|
||||
buf.count = p - buf._unsafeElementStorage
|
||||
buf.count = p - buf.baseAddress
|
||||
|
||||
// Report failure
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user