Skip to content

Commit 7c60187

Browse files
committed
Remove last addressWithNativeOwner use
1 parent 5fbe321 commit 7c60187

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/ManagedBuffer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ public struct ManagedBufferPointer<Header, Element> : Equatable {
244244
/// The stored `Header` instance.
245245
@inlinable // FIXME(sil-serialize-all)
246246
public var header: Header {
247-
addressWithNativeOwner {
248-
return (UnsafePointer(_headerPointer), _nativeBuffer)
247+
_read {
248+
yield _headerPointer.pointee
249249
}
250250
_modify {
251251
yield &_headerPointer.pointee

0 commit comments

Comments
 (0)