[stdlib] destroy redundant property

Swift SVN r22985
This commit is contained in:
Dave Abrahams
2014-10-28 03:58:39 +00:00
parent 788cb848e0
commit cc0c66df75
2 changed files with 8 additions and 18 deletions

View File

@@ -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