[llvm] [NFC][TableGen] Use std::move to avoid copy (PR #180775)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 10 08:34:21 PST 2026
https://github.com/JaydeepChauhan14 created https://github.com/llvm/llvm-project/pull/180775
None
>From 1db05af1c390c662089edf7299aab706e6f12312 Mon Sep 17 00:00:00 2001
From: Chauhan Jaydeep Ashwinbhai <chauhan.jaydeep.ashwinbhai at intel.com>
Date: Tue, 10 Feb 2026 08:33:44 -0800
Subject: [PATCH] [NFC][TableGen] Use std::move to avoid copy
---
llvm/utils/TableGen/RegisterInfoEmitter.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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},
More information about the llvm-commits
mailing list