File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
SwiftCompilerSources/Sources/Basic
lib/ASTGen/Sources/ASTGen Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ extension Optional where Wrapped == UnsafeMutablePointer<BridgedSwiftObject> {
173173
174174extension BridgedArrayRef {
175175 public func withElements< T, R> ( ofType ty: T . Type , _ c: ( UnsafeBufferPointer < T > ) -> R ) -> R {
176- let start = data? . bindMemory ( to: ty, capacity : count )
176+ let start = data? . assumingMemoryBound ( to: ty)
177177 let buffer = UnsafeBufferPointer ( start: start, count: count)
178178 return c ( buffer)
179179 }
Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ extension ConcatCollection: LazyCollectionProtocol {
313313
314314extension BridgedArrayRef {
315315 public func withElements< T, R> ( ofType ty: T . Type , _ c: ( UnsafeBufferPointer < T > ) -> R ) -> R {
316- let start = data? . bindMemory ( to: ty, capacity : count )
316+ let start = data? . assumingMemoryBound ( to: ty)
317317 let buffer = UnsafeBufferPointer ( start: start, count: count)
318318 return c ( buffer)
319319 }
You can’t perform that action at this time.
0 commit comments