diff options
-rw-r--r-- | llvm/include/llvm/ProfileData/SampleProf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ProfileData/SampleProf.h b/llvm/include/llvm/ProfileData/SampleProf.h index 609ba19f763..453e1a08bd0 100644 --- a/llvm/include/llvm/ProfileData/SampleProf.h +++ b/llvm/include/llvm/ProfileData/SampleProf.h @@ -146,7 +146,7 @@ class SampleRecord { public: using CallTarget = std::pair<StringRef, uint64_t>; struct CallTargetComparator { - bool operator() (const CallTarget &LHS, const CallTarget &RHS) { + bool operator()(const CallTarget &LHS, const CallTarget &RHS) const { if (LHS.second != RHS.second) return LHS.second > RHS.second; |