[llvm] [NFC][TableGen] Use std::move to avoid copy (PR #180775)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 10 08:35:01 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-tablegen
Author: None (JaydeepChauhan14)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/180775.diff
1 Files Affected:
- (modified) llvm/utils/TableGen/RegisterInfoEmitter.cpp (+1-1)
``````````diff
diff --git a/llvm/utils/TableGen/RegisterInfoEmitter.cpp b/llvm/utils/TableGen/RegisterInfoEmitter.cpp
index 3da01d8a6b7aa..3df439d681e8a 100644
--- a/llvm/utils/TableGen/RegisterInfoEmitter.cpp
+++ b/llvm/utils/TableGen/RegisterInfoEmitter.cpp
@@ -1870,7 +1870,7 @@ TableGenOutputFiles RegisterInfoEmitter::run(StringRef FilenamePrefix) {
// The suffixes should be in sync with the tablegen function in
// llvm/cmake/modules/TableGen.cmake.
- return {Main,
+ return {std::move(Main),
{{"Enums.inc", Enums},
{"MCDesc.inc", MCDesc},
{"Header.inc", Header},
``````````
</details>
https://github.com/llvm/llvm-project/pull/180775
More information about the llvm-commits
mailing list