[llvm] r334449 - Fix a warning reported by clang but not by gcc.
Wei Mi via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 11 15:51:28 PDT 2018
Author: wmi
Date: Mon Jun 11 15:51:28 2018
New Revision: 334449
URL: http://llvm.org/viewvc/llvm-project?rev=334449&view=rev
Log:
Fix a warning reported by clang but not by gcc.
Modified:
llvm/trunk/include/llvm/ProfileData/SampleProfWriter.h
Modified: llvm/trunk/include/llvm/ProfileData/SampleProfWriter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ProfileData/SampleProfWriter.h?rev=334449&r1=334448&r2=334449&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ProfileData/SampleProfWriter.h (original)
+++ llvm/trunk/include/llvm/ProfileData/SampleProfWriter.h Mon Jun 11 15:51:28 2018
@@ -110,7 +110,7 @@ public:
protected:
virtual std::error_code writeNameTable() = 0;
virtual std::error_code writeMagicIdent() = 0;
- std::error_code writeHeader(const StringMap<FunctionSamples> &ProfileMap);
+ std::error_code writeHeader(const StringMap<FunctionSamples> &ProfileMap) override;
std::error_code writeSummary();
std::error_code writeNameIdx(StringRef FName);
std::error_code writeBody(const FunctionSamples &S);
More information about the llvm-commits
mailing list