From 8210cdd764cb0b334f2bc205b316e94480c47c88 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 26 Apr 2025 18:18:09 -0700 Subject: [llvm] Use llvm::replace (NFC) (#137481) --- llvm/lib/Support/Path.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Support/Path.cpp') 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 &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; } -- cgit v1.1