[llvm] r329954 - [ProfileSummary] Move a vector we're about to destroy anyway; NFC
George Burgess IV via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 12 13:54:05 PDT 2018
Author: gbiv
Date: Thu Apr 12 13:54:05 2018
New Revision: 329954
URL: http://llvm.org/viewvc/llvm-project?rev=329954&view=rev
Log:
[ProfileSummary] Move a vector we're about to destroy anyway; NFC
Modified:
llvm/trunk/lib/IR/ProfileSummary.cpp
Modified: llvm/trunk/lib/IR/ProfileSummary.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/ProfileSummary.cpp?rev=329954&r1=329953&r2=329954&view=diff
==============================================================================
--- llvm/trunk/lib/IR/ProfileSummary.cpp (original)
+++ llvm/trunk/lib/IR/ProfileSummary.cpp Thu Apr 12 13:54:05 2018
@@ -179,7 +179,7 @@ ProfileSummary *ProfileSummary::getFromM
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);
}
More information about the llvm-commits
mailing list