[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;
|
SummaryEntryVector Summary;
|
||||||
if (!getSummaryFromMD(dyn_cast<MDTuple>(Tuple->getOperand(7)), Summary))
|
if (!getSummaryFromMD(dyn_cast<MDTuple>(Tuple->getOperand(7)), Summary))
|
||||||
return nullptr;
|
return nullptr;
|
||||||
return new ProfileSummary(SummaryKind, Summary, TotalCount, MaxCount,
|
return new ProfileSummary(SummaryKind, std::move(Summary), TotalCount,
|
||||||
MaxInternalCount, MaxFunctionCount, NumCounts,
|
MaxCount, MaxInternalCount, MaxFunctionCount,
|
||||||
NumFunctions);
|
NumCounts, NumFunctions);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue