diff --git a/llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h b/llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h index f02bacb6edc39b..03454962dabe4a 100644 --- a/llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h +++ b/llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h @@ -69,6 +69,7 @@ extern cl::opt NoWarnSampleUnused; class SampleProfileLoaderBaseImpl { public: SampleProfileLoaderBaseImpl(std::string Name) : Filename(Name) {} + virtual ~SampleProfileLoaderBaseImpl() = default; void dump() { Reader->dump(); } protected: