[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:53 PST 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-binary-utilities

Author: None (serge-sans-paille)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/179463.diff


1 Files Affected:

- (modified) llvm/tools/llvm-objdump/SourcePrinter.cpp (+1-1) 


``````````diff
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,

``````````

</details>


https://github.com/llvm/llvm-project/pull/179463


More information about the llvm-commits mailing list