From b82c6bd567bf6e4c5be81a8a34fba5c005ad4468 Mon Sep 17 00:00:00 2001 From: Ben Barham Date: Tue, 27 Aug 2024 16:43:28 -0700 Subject: [PATCH] [Cleanup] Rename another `endswith` `endswith` is renamed to `ends_with` upstream. --- lib/AST/SearchPathOptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AST/SearchPathOptions.cpp b/lib/AST/SearchPathOptions.cpp index a2f7326ee728..ae1cc1bac512 100644 --- a/lib/AST/SearchPathOptions.cpp +++ b/lib/AST/SearchPathOptions.cpp @@ -93,7 +93,7 @@ static std::string computeSDKPlatformPath(StringRef SDKPath, llvm::sys::path::remove_filename(platformPath); // SDKs llvm::sys::path::remove_filename(platformPath); // Developer - if (!llvm::sys::path::filename(platformPath).endswith(".platform")) + if (!llvm::sys::path::filename(platformPath).ends_with(".platform")) return ""; return platformPath.str().str();