aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/DecoderEmitter.cpp
diff options
context:
space:
mode:
authorabhishek-kaushik22 <abhishek.kaushik@intel.com>2025-01-15 09:20:00 -0800
committerGitHub <noreply@github.com>2025-01-15 22:50:00 +0530
commit943b212d56795064248a13adb13253d64ac51a8c (patch)
treedb4f9d78c24fd223e6d2d72e8507088f7d80de5f /llvm/utils/TableGen/DecoderEmitter.cpp
parent06499f3672afc371b653bf54422c2e80e1e27c90 (diff)
downloadllvm-943b212d56795064248a13adb13253d64ac51a8c.zip
llvm-943b212d56795064248a13adb13253d64ac51a8c.tar.gz
llvm-943b212d56795064248a13adb13253d64ac51a8c.tar.bz2
[TableGen] Use `std::move` to avoid copy (#123088)
Diffstat (limited to 'llvm/utils/TableGen/DecoderEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/DecoderEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/DecoderEmitter.cpp b/llvm/utils/TableGen/DecoderEmitter.cpp
index 90a6d0e..3f79de3 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({