[llvm] [llvm] Use llvm::replace (NFC) (PR #137481)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 26 16:26:57 PDT 2025


================
@@ -143,7 +143,7 @@ static void VisitComponent(const std::string &Name,
     if (Missing && GetComponentLibraryPath) {
       std::string path = (*GetComponentLibraryPath)(AC->Library);
       if (DirSep == "\\") {
-        std::replace(path.begin(), path.end(), '/', '\\');
+        llvm::replace(path, '/', '\\');
----------------
shiltian wrote:

ditto

https://github.com/llvm/llvm-project/pull/137481


More information about the llvm-commits mailing list