From: Craig Topper Date: Tue, 25 Nov 2014 20:11:25 +0000 (+0000) Subject: Move a vector instead of copying it. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f3873613cc1ade0a7ab1cc133d123a1ba2d417d;p=platform%2Fupstream%2Fllvm.git Move a vector instead of copying it. llvm-svn: 222779 --- diff --git a/llvm/utils/TableGen/AsmWriterEmitter.cpp b/llvm/utils/TableGen/AsmWriterEmitter.cpp index 4089ede..72cd07e 100644 --- a/llvm/utils/TableGen/AsmWriterEmitter.cpp +++ b/llvm/utils/TableGen/AsmWriterEmitter.cpp @@ -350,7 +350,7 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) { // in the opcode-indexed table. unsigned BitsLeft = 64-AsmStrBits; - std::vector > TableDrivenOperandPrinters; + std::vector> TableDrivenOperandPrinters; while (1) { std::vector UniqueOperandCommands; @@ -393,7 +393,7 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) { } // Remember the handlers for this set of operands. - TableDrivenOperandPrinters.push_back(UniqueOperandCommands); + TableDrivenOperandPrinters.push_back(std::move(UniqueOperandCommands)); }