We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83c14bc commit 90d58feCopy full SHA for 90d58fe
stdlib/public/core/String.swift
@@ -458,6 +458,7 @@ extension String {
458
contigBytes._providesContiguousBytesNoCopy
459
{
460
self = contigBytes.withUnsafeBytes { rawBufPtr in
461
+ Builtin.onFastPath() // encourage SIL Optimizer to inline this closure
462
return String._fromUTF8Repairing(
463
UnsafeBufferPointer(
464
start: rawBufPtr.baseAddress?.assumingMemoryBound(to: UInt8.self),
0 commit comments