Skip to content

Commit a6d03c5

Browse files
committed
surround _createOffsetBasedKeyPath in SWIFT_ENABLE_REFLECTION
1 parent c626dea commit a6d03c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/KeyPath.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3893,6 +3893,8 @@ internal func _instantiateKeyPathBuffer(
38933893
return offset
38943894
}
38953895

3896+
#if SWIFT_ENABLE_REFLECTION
3897+
38963898
@available(SwiftStdlib 5.9, *)
38973899
public func _createOffsetBasedKeyPath(
38983900
root: Any.Type,
@@ -3943,8 +3945,6 @@ public func _createOffsetBasedKeyPath(
39433945
return kp
39443946
}
39453947

3946-
#if SWIFT_ENABLE_REFLECTION
3947-
39483948
@_silgen_name("swift_keyPath_copySymbolName")
39493949
fileprivate func keyPath_copySymbolName(
39503950
_: UnsafeRawPointer

0 commit comments

Comments
 (0)