Skip to content

Commit 6aab1c8

Browse files
Remove last addressWithNativeOwner use (#20448)
1 parent 6d255f5 commit 6aab1c8

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
@@ -305,8 +305,8 @@ extension ManagedBufferPointer {
305305
/// The stored `Header` instance.
306306
@inlinable
307307
public var header: Header {
308-
addressWithNativeOwner {
309-
return (UnsafePointer(_headerPointer), _nativeBuffer)
308+
_read {
309+
yield _headerPointer.pointee
310310
}
311311
_modify {
312312
yield &_headerPointer.pointee

0 commit comments

Comments
 (0)