aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TableGen/TGParser.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-10-03 18:33:16 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-10-03 18:33:16 +0000
commite12a6bac3290c6c46239ad22c698e7a1da7b08af (patch)
tree932564ca3e8a83f2b4826ed1c264a9716125313b /llvm/lib/TableGen/TGParser.cpp
parentcb3e06ba004b4d3e3b370cfb2d404ee0be6c8d68 (diff)
downloadllvm-e12a6bac3290c6c46239ad22c698e7a1da7b08af.zip
llvm-e12a6bac3290c6c46239ad22c698e7a1da7b08af.tar.gz
llvm-e12a6bac3290c6c46239ad22c698e7a1da7b08af.tar.bz2
Eliminate some deep std::vector copies. NFC.
llvm-svn: 218999
Diffstat (limited to 'llvm/lib/TableGen/TGParser.cpp')
-rw-r--r--llvm/lib/TableGen/TGParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/TableGen/TGParser.cpp b/llvm/lib/TableGen/TGParser.cpp
index 2e67f5f..4d4bbe9 100644
--- a/llvm/lib/TableGen/TGParser.cpp
+++ b/llvm/lib/TableGen/TGParser.cpp
@@ -2262,7 +2262,7 @@ bool TGParser::ParseTopLevelLet(MultiClass *CurMultiClass) {
// Add this entry to the let stack.
std::vector<LetRecord> LetInfo = ParseLetList();
if (LetInfo.empty()) return true;
- LetStack.push_back(LetInfo);
+ LetStack.push_back(std::move(LetInfo));
if (Lex.getCode() != tgtok::In)
return TokError("expected 'in' at end of top-level 'let'");