mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Eliminate some deep std::vector copies. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218999 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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'");
|
||||
|
Reference in New Issue
Block a user