From 6ac3f739ca4cd90b41388cc50070a6bca85b6842 Mon Sep 17 00:00:00 2001 From: Eugene Zelenko Date: Tue, 26 Jan 2016 18:48:36 +0000 Subject: Fix Clang-tidy modernize-use-nullptr and modernize-use-override warnings; other minor fixes. Differential revision: reviews.llvm.org/D16568 llvm-svn: 258831 --- llvm/lib/ProfileData/InstrProf.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'llvm/lib/ProfileData/InstrProf.cpp') diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp index 8482b18f1e0..00deec6f8e8 100644 --- a/llvm/lib/ProfileData/InstrProf.cpp +++ b/llvm/lib/ProfileData/InstrProf.cpp @@ -65,7 +65,7 @@ class InstrProfErrorCategoryType : public std::error_category { llvm_unreachable("A value of instrprof_error has no message."); } }; -} +} // end anonymous namespace static ManagedStatic ErrorCategory; @@ -443,12 +443,12 @@ ValueProfData *allocValueProfDataInstrProf(size_t TotalSizeInBytes) { } static ValueProfRecordClosure InstrProfRecordClosure = { - 0, + nullptr, getNumValueKindsInstrProf, getNumValueSitesInstrProf, getNumValueDataInstrProf, getNumValueDataForSiteInstrProf, - 0, + nullptr, getValueForSiteInstrProf, allocValueProfDataInstrProf}; @@ -638,7 +638,6 @@ void ProfileSummary::computeDetailedSummary() { ProfileSummaryEntry PSE = {Cutoff, Count, BlocksSeen}; DetailedSummary.push_back(PSE); } - return; } -} +} // end namespace llvm -- cgit v1.2.3