[llvm] [NFC][TableGen] Refactor DecoderEmitter.cpp (PR #135510)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 14 08:56:28 PDT 2025
================
@@ -97,8 +97,8 @@ struct OperandInfo {
bool HasCompleteDecoder;
uint64_t InitValue;
- OperandInfo(std::string D, bool HCD)
- : Decoder(std::move(D)), HasCompleteDecoder(HCD), InitValue(0) {}
+ OperandInfo(const std::string &D, bool HCD)
----------------
jurahul wrote:
Thanks. I think this is covered here: https://abseil.io/tips/117 (the reason to use byval). I'll revert back to that.
https://github.com/llvm/llvm-project/pull/135510
More information about the llvm-commits
mailing list