aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues
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/LiveDebugValues
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/LiveDebugValues')
-rw-r--r--llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
index c70c638..6bbd130 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
@@ -928,8 +928,7 @@ public:
assert(ActiveVLocIt != ActiveVLocs.end());
// Update all instances of Src in the variable's tracked values to Dst.
- std::replace(ActiveVLocIt->second.Ops.begin(),
- ActiveVLocIt->second.Ops.end(), SrcOp, DstOp);
+ llvm::replace(ActiveVLocIt->second.Ops, SrcOp, DstOp);
auto &[Var, DILoc] = DVMap.lookupDVID(VarID);
MachineInstr *MI = MTracker->emitLoc(ActiveVLocIt->second.Ops, Var, DILoc,