diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Support/CachePruning.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/Support/CachePruning.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/Support/CachePruning.cpp b/contrib/llvm-project/llvm/lib/Support/CachePruning.cpp index a56d8356d838..4eae08b18c9b 100644 --- a/contrib/llvm-project/llvm/lib/Support/CachePruning.cpp +++ b/contrib/llvm-project/llvm/lib/Support/CachePruning.cpp @@ -218,7 +218,7 @@ bool llvm::pruneCache(StringRef Path, CachePruningPolicy Policy, // This acts as a safeguard against data loss if the user specifies the // wrong directory as their cache directory. StringRef filename = sys::path::filename(File->path()); - if (!filename.startswith("llvmcache-") && !filename.startswith("Thin-")) + if (!filename.starts_with("llvmcache-") && !filename.starts_with("Thin-")) continue; // Look at this file. If we can't stat it, there's nothing interesting |
