diff options
author | Kazu Hirata <kazu@google.com> | 2025-04-26 18:18:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-26 18:18:09 -0700 |
commit | 8210cdd764cb0b334f2bc205b316e94480c47c88 (patch) | |
tree | 2c8d555403767b4467bd3f6f7d070ac69872e3da /llvm/lib/Support/Path.cpp | |
parent | fda8b751bd676190251721cb4840e82dd378f3fb (diff) | |
download | llvm-8210cdd764cb0b334f2bc205b316e94480c47c88.zip llvm-8210cdd764cb0b334f2bc205b316e94480c47c88.tar.gz llvm-8210cdd764cb0b334f2bc205b316e94480c47c88.tar.bz2 |
[llvm] Use llvm::replace (NFC) (#137481)
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r-- | llvm/lib/Support/Path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp index d775285..761d29e 100644 --- a/llvm/lib/Support/Path.cpp +++ b/llvm/lib/Support/Path.cpp @@ -561,7 +561,7 @@ void native(SmallVectorImpl<char> &Path, Style style) { Path = PathHome; } } else { - std::replace(Path.begin(), Path.end(), '\\', '/'); + llvm::replace(Path, '\\', '/'); } } @@ -570,7 +570,7 @@ std::string convert_to_slash(StringRef path, Style style) { return std::string(path); std::string s = path.str(); - std::replace(s.begin(), s.end(), '\\', '/'); + llvm::replace(s, '\\', '/'); return s; } |