Skip to content

Commit 7c333b8

Browse files
committed
[stdlib] Never inline fallback helper methods when parsing strings to integers.
1 parent a9c57c3 commit 7c333b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/core/IntegerParsing.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// `UTF8CodeUnits == UnsafeBufferPoint<UInt8>`. Ensure that any changes are
1515
// made in sync.
1616
@_alwaysEmitIntoClient
17+
@inline(never)
1718
internal func _parseASCIIDigits<
1819
UTF8CodeUnits: Collection, Result: FixedWidthInteger
1920
>(
@@ -124,6 +125,7 @@ internal func _parseASCIIDigits<Result: FixedWidthInteger>(
124125
}
125126

126127
@_alwaysEmitIntoClient
128+
@inline(never)
127129
internal func _parseASCII<UTF8CodeUnits: Collection, Result: FixedWidthInteger>(
128130
_ codeUnits: UTF8CodeUnits, radix: Int
129131
) -> Result? where UTF8CodeUnits.Element == UInt8 {

0 commit comments

Comments
 (0)