Skip to content

Commit 3a50f93

Browse files
authored
Merge pull request #33142 from natecook1000/nate/stdlib-stability-abi
[stdlib] Only include _getMetadataSection functions in stdlib builds w/ assertions
2 parents a1ae109 + 014918c commit 3a50f93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/Misc.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public func _getTypeByMangledNameInContext(
133133
genericArguments: UnsafeRawPointer?)
134134
-> Any.Type?
135135

136-
136+
#if INTERNAL_CHECKS_ENABLED
137137
@_silgen_name("swift_getMetadataSection")
138138
public func _getMetadataSection(
139139
_ index: UInt)
@@ -147,4 +147,4 @@ public func _getMetadataSectionCount()
147147
public func _getMetadataSectionName(
148148
_ metadata_section: UnsafeRawPointer)
149149
-> UnsafePointer<CChar>
150-
150+
#endif

0 commit comments

Comments
 (0)