[TableGen] Move the ConversionRow vector into the ConversionTable instead of copying.
authorCraig Topper <craig.topper@gmail.com>
Sun, 16 Aug 2015 21:27:08 +0000 (21:27 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 16 Aug 2015 21:27:08 +0000 (21:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245190 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmMatcherEmitter.cpp

index 8403aa56556aeccdcce4ca5f6e38f5bfdf8ba5ad..30dbb11b62ac21ef57d68e4b261bdc2eef18fab3 100644 (file)
@@ -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.