[SampleFDO] Provide a virtual desructor for SampleProfileLoaderBaseImpl

This patch fixes a warning:

  llvm-project/llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h:69:7:
  error: 'llvm::SampleProfileLoaderBaseImpl' has virtual functions but
  non-virtual destructor [-Werror,-Wnon-virtual-dtor]

Differential Revision: https://reviews.llvm.org/D96810

GitOrigin-RevId: ba2aa5f49ebbe28ad2dbf0c5bea451f0ebf436c6
diff --git a/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h b/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h
index f02bacb..0345496 100644
--- a/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h
+++ b/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h
@@ -69,6 +69,7 @@
 class SampleProfileLoaderBaseImpl {
 public:
   SampleProfileLoaderBaseImpl(std::string Name) : Filename(Name) {}
+  virtual ~SampleProfileLoaderBaseImpl() = default;
   void dump() { Reader->dump(); }
 
 protected: