aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-04-26 18:18:09 -0700
committerGitHub <noreply@github.com>2025-04-26 18:18:09 -0700
commit8210cdd764cb0b334f2bc205b316e94480c47c88 (patch)
tree2c8d555403767b4467bd3f6f7d070ac69872e3da /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parentfda8b751bd676190251721cb4840e82dd378f3fb (diff)
downloadllvm-8210cdd764cb0b334f2bc205b316e94480c47c88.zip
llvm-8210cdd764cb0b334f2bc205b316e94480c47c88.tar.gz
llvm-8210cdd764cb0b334f2bc205b316e94480c47c88.tar.bz2
[llvm] Use llvm::replace (NFC) (#137481)
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp2
1 files changed, 1 insertions, 1 deletions
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;