[llvm] f8af06d - Fix -Wnon-virtual-dtor by making the ctor protected
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 16 13:38:45 PST 2021
Author: David Blaikie
Date: 2021-02-16T13:38:28-08:00
New Revision: f8af06d60d9c5bcf6104bf6540350fb0fb1d7ac5
URL: https://github.com/llvm/llvm-project/commit/f8af06d60d9c5bcf6104bf6540350fb0fb1d7ac5
DIFF: https://github.com/llvm/llvm-project/commit/f8af06d60d9c5bcf6104bf6540350fb0fb1d7ac5.diff
LOG: Fix -Wnon-virtual-dtor by making the ctor protected
Added:
Modified:
llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h b/llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h
index 03454962dabe..60f117cefcb2 100644
--- a/llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h
+++ b/llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h
@@ -73,6 +73,7 @@ class SampleProfileLoaderBaseImpl {
void dump() { Reader->dump(); }
protected:
+ ~SampleProfileLoaderBaseImpl() = default;
friend class SampleCoverageTracker;
unsigned getFunctionLoc(Function &F);
More information about the llvm-commits
mailing list