[llvm] [perf] Replace copy-assign by move-assign in llvm/tools/ (PR #179463)

via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 3 05:55:15 PST 2026


https://github.com/serge-sans-paille created https://github.com/llvm/llvm-project/pull/179463

None

>From 98d6ce814f01edefe51295d4521075995e0154c8 Mon Sep 17 00:00:00 2001
From: serge-sans-paille <sguelton at mozilla.com>
Date: Tue, 3 Feb 2026 14:54:20 +0100
Subject: [PATCH] [perf] Replace copy-assign by move-assign in llvm/tools/

---
 llvm/tools/llvm-objdump/SourcePrinter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/tools/llvm-objdump/SourcePrinter.cpp b/llvm/tools/llvm-objdump/SourcePrinter.cpp
index a4891a3620ee9..a92b955a49cde 100644
--- a/llvm/tools/llvm-objdump/SourcePrinter.cpp
+++ b/llvm/tools/llvm-objdump/SourcePrinter.cpp
@@ -688,7 +688,7 @@ void SourcePrinter::printSourceLine(formatted_raw_ostream &OS,
     printLines(OS, Address, LineInfo, Delimiter, LEP);
   if (PrintSource)
     printSources(OS, LineInfo, ObjectFilename, Delimiter, LEP);
-  OldLineInfo = LineInfo;
+  OldLineInfo = std::move(LineInfo);
 }
 
 void SourcePrinter::printLines(formatted_raw_ostream &OS,



More information about the llvm-commits mailing list