forked from OSchip/llvm-project
[ProfileSummary] Move a vector we're about to destroy anyway; NFC
llvm-svn: 329954
This commit is contained in:
parent
0e45634f4e
commit
49331246b6
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue