Skip to content

Commit b82c6bd

Browse files
committed
[Cleanup] Rename another endswith
`endswith` is renamed to `ends_with` upstream.
1 parent 7907f1f commit b82c6bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/SearchPathOptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static std::string computeSDKPlatformPath(StringRef SDKPath,
9393
llvm::sys::path::remove_filename(platformPath); // SDKs
9494
llvm::sys::path::remove_filename(platformPath); // Developer
9595

96-
if (!llvm::sys::path::filename(platformPath).endswith(".platform"))
96+
if (!llvm::sys::path::filename(platformPath).ends_with(".platform"))
9797
return "";
9898

9999
return platformPath.str().str();

0 commit comments

Comments
 (0)