Skip to content

Commit 9866c15

Browse files
committed
[stdlib] UnsafePointer: Add @_preInverseGenerics to stored properties
1 parent 7a34021 commit 9866c15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/core/UnsafePointer.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ public struct UnsafePointer<Pointee: ~Copyable>: _Pointer, Copyable {
210210
public typealias Distance = Int
211211

212212
/// The underlying raw (untyped) pointer.
213+
@_preInverseGenerics
213214
public let _rawValue: Builtin.RawPointer
214215

215216
/// Creates an `UnsafePointer` from a builtin raw pointer.
@@ -602,6 +603,7 @@ public struct UnsafeMutablePointer<Pointee: ~Copyable>: _Pointer, Copyable {
602603
public typealias Distance = Int
603604

604605
/// The underlying raw (untyped) pointer.
606+
@_preInverseGenerics
605607
public let _rawValue: Builtin.RawPointer
606608

607609
/// Creates an `UnsafeMutablePointer` from a builtin raw pointer.

0 commit comments

Comments
 (0)