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/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 475e1c0..df4e4857 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -164,7 +164,7 @@ StringRef CodeViewDebug::getFullFilepath(const DIFile *File) { // Canonicalize the path. We have to do it textually because we may no longer // have access the file in the filesystem. // First, replace all slashes with backslashes. - std::replace(Filepath.begin(), Filepath.end(), '/', '\\'); + llvm::replace(Filepath, '/', '\\'); // Remove all "\.\" with "\". size_t Cursor = 0; -- cgit v1.1