mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Rename StringRef::endswith references to StringRef::ends_with
Missed this when doing the `startswith` renaming. `endswith` has also been deprecated upstream (and presumably soon to be removed).
This commit is contained in:
@@ -115,7 +115,7 @@ getVersionedPrebuiltModulePath(std::optional<llvm::VersionTuple> sdkVer,
|
||||
llvm::sys::path::append(pathWithSDKVer, vs);
|
||||
if (llvm::sys::fs::exists(pathWithSDKVer)) {
|
||||
return pathWithSDKVer.str().str();
|
||||
} else if (vs.endswith(".0")) {
|
||||
} else if (vs.ends_with(".0")) {
|
||||
vs = vs.substr(0, vs.size() - 2);
|
||||
} else {
|
||||
return defaultPrebuiltPath.str();
|
||||
|
||||
Reference in New Issue
Block a user