[TableGen] Use const auto& instead of auto to avoid copy (#113053)
This commit is contained in:
committed by
GitHub
parent
58c8d73172
commit
cec52960fd
@@ -159,7 +159,7 @@ static void EmitInstrDocs(const RecordKeeper &RK, raw_ostream &OS) {
|
||||
// Operands.
|
||||
for (unsigned i = 0; i < II->Operands.size(); ++i) {
|
||||
bool IsDef = i < II->Operands.NumDefs;
|
||||
auto Op = II->Operands[i];
|
||||
const auto &Op = II->Operands[i];
|
||||
|
||||
if (Op.MINumOperands > 1) {
|
||||
// This operand corresponds to multiple operands on the
|
||||
|
||||
Reference in New Issue
Block a user