[stdlib] Add an unsafe U[M]BP initializer to work around some inliner test failures

This commit is contained in:
Karoy Lorentey
2020-12-09 19:31:28 -08:00
parent 282a1408de
commit 1f92df093c
3 changed files with 12 additions and 4 deletions

View File

@@ -902,7 +902,7 @@ extension _StringObject {
return sharedUTF8
}
return UnsafeBufferPointer(
start: self.nativeUTF8Start, count: self.largeCount)
_uncheckedStart: self.nativeUTF8Start, count: self.largeCount)
}
// Whether the object stored can be bridged directly as a NSString