summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/lib/IR/ProfileSummary.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/ProfileSummary.cpp b/llvm/lib/IR/ProfileSummary.cpp
index 6635d4cfc7b..491fe834df9 100644
--- a/llvm/lib/IR/ProfileSummary.cpp
+++ b/llvm/lib/IR/ProfileSummary.cpp
@@ -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);
}
OpenPOWER on IntegriCloud