diff options
Diffstat (limited to 'llvm/lib/Support/Unix/Path.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index 3b668ba82ebb..9f89d63bb0fd 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -652,7 +652,7 @@ std::error_code equivalent(const Twine &A, const Twine &B, bool &result) { static void expandTildeExpr(SmallVectorImpl<char> &Path) { StringRef PathStr(Path.begin(), Path.size()); - if (PathStr.empty() || !PathStr.startswith("~")) + if (PathStr.empty() || !PathStr.starts_with("~")) return; PathStr = PathStr.drop_front(); |