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> {
173
173
174
174
extension BridgedArrayRef {
175
175
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)
177
177
let buffer = UnsafeBufferPointer ( start: start, count: count)
178
178
return c ( buffer)
179
179
}
Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ extension ConcatCollection: LazyCollectionProtocol {
313
313
314
314
extension BridgedArrayRef {
315
315
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)
317
317
let buffer = UnsafeBufferPointer ( start: start, count: count)
318
318
return c ( buffer)
319
319
}
You can’t perform that action at this time.
0 commit comments