File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -374,10 +374,9 @@ public struct AutoreleasingUnsafeMutablePointer<Pointee /* TODO : class */>
374
374
/// `Pointee`.
375
375
@inlinable
376
376
public var pointee : Pointee {
377
- /// Retrieve the value the pointer points to.
378
- @_transparent get {
377
+ @_transparent _read {
379
378
// We can do a strong load normally.
380
- return UnsafePointer ( self ) . pointee
379
+ yield UnsafePointer ( self ) . pointee
381
380
}
382
381
/// Set the value the pointer points to, copying over the previous value.
383
382
///
@@ -414,9 +413,9 @@ public struct AutoreleasingUnsafeMutablePointer<Pointee /* TODO : class */>
414
413
@inlinable // unsafe-performance
415
414
public subscript( i: Int) -> Pointee {
416
415
@_transparent
417
- get {
416
+ _read {
418
417
// We can do a strong load normally.
419
- return ( UnsafePointer < Pointee > ( self ) + i) . pointee
418
+ yield ( ( UnsafePointer < Pointee > ( self ) + i) . pointee)
420
419
}
421
420
}
422
421
You can’t perform that action at this time.
0 commit comments