summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/ProfileSummary.cpp
diff options
context:
space:
mode:
authorGeorge Burgess IV <george.burgess.iv@gmail.com>2018-04-12 20:54:05 +0000
committerGeorge Burgess IV <george.burgess.iv@gmail.com>2018-04-12 20:54:05 +0000
commit49331246b68459daa3f66c076d553e6168a67650 (patch)
tree2ef88f1fb60a99c513c5f19c45cb3ec7712e2742 /llvm/lib/IR/ProfileSummary.cpp
parent0e45634f4eeb1e5c2bdb13ea8377aedc6f7d068a (diff)
downloadbcm5719-llvm-49331246b68459daa3f66c076d553e6168a67650.tar.gz
bcm5719-llvm-49331246b68459daa3f66c076d553e6168a67650.zip
[ProfileSummary] Move a vector we're about to destroy anyway; NFC
llvm-svn: 329954
Diffstat (limited to 'llvm/lib/IR/ProfileSummary.cpp')
-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