From: Craig Topper Date: Sun, 16 Aug 2015 21:27:08 +0000 (+0000) Subject: [TableGen] Move the ConversionRow vector into the ConversionTable instead of copying. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=c18d928f5db5f27c90771db1888ab1b14e56027a;hp=21b026660069eaa71d342fb18f7883bef22c2245 [TableGen] Move the ConversionRow vector into the ConversionTable instead of copying. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245190 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index 8403aa56556..30dbb11b62a 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -1974,7 +1974,7 @@ static void emitConvertFuncs(CodeGenTarget &Target, StringRef ClassName, continue; // Add the row to the table. - ConversionTable.push_back(ConversionRow); + ConversionTable.push_back(std::move(ConversionRow)); } // Finish up the converter driver function.