Skip to content

Commit 943b212

Browse files
[TableGen] Use std::move to avoid copy (llvm#123088)
1 parent 06499f3 commit 943b212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/TableGen/DecoderEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2146,7 +2146,7 @@ populateInstruction(const CodeGenTarget &Target, const Record &EncodingDef,
21462146
InsnOperands.push_back(std::move(OpInfo));
21472147
}
21482148
}
2149-
Operands[Opc] = InsnOperands;
2149+
Operands[Opc] = std::move(InsnOperands);
21502150

21512151
#if 0
21522152
LLVM_DEBUG({

0 commit comments

Comments
 (0)