From 6df09d6ccbc0cb72d3278cafb592e9bc0e6b84a1 Mon Sep 17 00:00:00 2001 From: Rong Xu Date: Fri, 3 Sep 2021 12:19:03 -0700 Subject: [PATCH] [SampleFDO] Fix -Wnon-virtual-dtor Make the dtor virtual to fix the warning. --- llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h b/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h index 2a510e6..1cef5e7 100644 --- a/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h +++ b/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h @@ -114,7 +114,7 @@ public: DenseMap>; protected: - ~SampleProfileLoaderBaseImpl() = default; + virtual ~SampleProfileLoaderBaseImpl() = default; friend class SampleCoverageTracker; Function &getFunction(FunctionT &F) { -- 2.7.4