[llvm] 943b212 - [TableGen] Use `std::move` to avoid copy (#123088)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 15 09:20:04 PST 2025
Author: abhishek-kaushik22
Date: 2025-01-15T22:50:00+05:30
New Revision: 943b212d56795064248a13adb13253d64ac51a8c
URL: https://github.com/llvm/llvm-project/commit/943b212d56795064248a13adb13253d64ac51a8c
DIFF: https://github.com/llvm/llvm-project/commit/943b212d56795064248a13adb13253d64ac51a8c.diff
LOG: [TableGen] Use `std::move` to avoid copy (#123088)
Added:
Modified:
llvm/utils/TableGen/DecoderEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/DecoderEmitter.cpp b/llvm/utils/TableGen/DecoderEmitter.cpp
index 90a6d0ee8acb57..3f79de3139fbd3 100644
--- a/llvm/utils/TableGen/DecoderEmitter.cpp
+++ b/llvm/utils/TableGen/DecoderEmitter.cpp
@@ -2146,7 +2146,7 @@ populateInstruction(const CodeGenTarget &Target, const Record &EncodingDef,
InsnOperands.push_back(std::move(OpInfo));
}
}
- Operands[Opc] = InsnOperands;
+ Operands[Opc] = std::move(InsnOperands);
#if 0
LLVM_DEBUG({
More information about the llvm-commits
mailing list