[llvm] [llvm] Use llvm::replace (NFC) (PR #137481)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 26 16:26:40 PDT 2025
================
@@ -555,7 +554,7 @@ int main(int argc, char **argv) {
if (AC.Library && !IsInDevelopmentTree) {
std::string path(GetComponentLibraryPath(AC.Library, false));
if (DirSep == "\\") {
- std::replace(path.begin(), path.end(), '/', '\\');
+ llvm::replace(path, '/', '\\');
----------------
shiltian wrote:
no long need `{}`
https://github.com/llvm/llvm-project/pull/137481
More information about the llvm-commits
mailing list