Fix -Wnon-virtual-dtor by making the ctor protected
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 16 Feb 2021 21:13:21 +0000 (13:13 -0800)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 16 Feb 2021 21:38:28 +0000 (13:38 -0800)
llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h

index 0345496..60f117c 100644 (file)
@@ -73,6 +73,7 @@ public:
   void dump() { Reader->dump(); }
 
 protected:
+  ~SampleProfileLoaderBaseImpl() = default;
   friend class SampleCoverageTracker;
 
   unsigned getFunctionLoc(Function &F);