diff --git a/llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h b/llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h --- a/llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h +++ b/llvm/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: