Skip to content

Commit 5daf674

Browse files
committed
ProfileSummary.h - remove unnecessary std::move.
The constructor args are passed by reference since d6790a0 Fixes MSVC static analysis warning
1 parent e3d73ad commit 5daf674

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/include/llvm/IR/ProfileSummary.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ class ProfileSummary {
7373
uint64_t MaxInternalCount, uint64_t MaxFunctionCount,
7474
uint32_t NumCounts, uint32_t NumFunctions,
7575
bool Partial = false, double PartialProfileRatio = 0)
76-
: PSK(K), DetailedSummary(std::move(DetailedSummary)),
77-
TotalCount(TotalCount), MaxCount(MaxCount),
78-
MaxInternalCount(MaxInternalCount), MaxFunctionCount(MaxFunctionCount),
79-
NumCounts(NumCounts), NumFunctions(NumFunctions), Partial(Partial),
76+
: PSK(K), DetailedSummary(DetailedSummary), TotalCount(TotalCount),
77+
MaxCount(MaxCount), MaxInternalCount(MaxInternalCount),
78+
MaxFunctionCount(MaxFunctionCount), NumCounts(NumCounts),
79+
NumFunctions(NumFunctions), Partial(Partial),
8080
PartialProfileRatio(PartialProfileRatio) {}
8181

8282
Kind getKind() const { return PSK; }

0 commit comments

Comments
 (0)