mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
UTF8View's endIndex needs to potentially apply a legacyOffset. This adds a sanity check that it is in range, and a fast-path for the common case of 0.