Make corelibs-foundation build

Expose the old SPIs again so corelibs-foundation can build. We'll want
to wean them off of these and establish proper APIs soon.
This commit is contained in:
Michael Ilseman
2018-10-29 16:54:12 -07:00
parent c04dcf3b38
commit 1939d165ae
3 changed files with 46 additions and 5 deletions

View File

@@ -497,7 +497,7 @@ extension String.UTF16View {
return _guts.withFastUTF8 { utf8 in
var readIdx = crumb.encodedOffset
var readEnd = utf8.count
let readEnd = utf8.count
_sanityCheck(readIdx < readEnd)
var utf16I = 0