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/LiveVariables.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/LiveVariables.cpp') diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp index f8e058383..f0bb439 100644 --- a/llvm/lib/CodeGen/LiveVariables.cpp +++ b/llvm/lib/CodeGen/LiveVariables.cpp @@ -764,7 +764,7 @@ void LiveVariables::recomputeForSingleDefVirtReg(Register Reg) { void LiveVariables::replaceKillInstruction(Register Reg, MachineInstr &OldMI, MachineInstr &NewMI) { VarInfo &VI = getVarInfo(Reg); - std::replace(VI.Kills.begin(), VI.Kills.end(), &OldMI, &NewMI); + llvm::replace(VI.Kills, &OldMI, &NewMI); } /// removeVirtualRegistersKilled - Remove all killed info for the specified -- cgit v1.1