mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Specify end of second range to std::mismatch (since C++14) to avoid accidentally stepping outside that range. In this case fixes a crash when trying to find a common prefix with an empty StringRef. Also add early return if no common root can be found. Fix for "REPL crashes during autocompletion" #62802
13 KiB
13 KiB