[ProfileSummary] Move a vector we're about to destroy anyway; NFC

llvm-svn: 329954
This commit is contained in:
George Burgess IV 2018-04-12 20:54:05 +00:00
parent 0e45634f4e
commit 49331246b6
1 changed files with 3 additions and 3 deletions

View File

@ -179,7 +179,7 @@ ProfileSummary *ProfileSummary::getFromMD(Metadata *MD) {
SummaryEntryVector Summary;
if (!getSummaryFromMD(dyn_cast<MDTuple>(Tuple->getOperand(7)), Summary))
return nullptr;
return new ProfileSummary(SummaryKind, Summary, TotalCount, MaxCount,
MaxInternalCount, MaxFunctionCount, NumCounts,
NumFunctions);
return new ProfileSummary(SummaryKind, std::move(Summary), TotalCount,
MaxCount, MaxInternalCount, MaxFunctionCount,
NumCounts, NumFunctions);
}