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