From: Rong Xu Date: Fri, 3 Sep 2021 19:19:03 +0000 (-0700) Subject: [SampleFDO] Fix -Wnon-virtual-dtor X-Git-Tag: upstream/15.0.7~32271 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6df09d6ccbc0cb72d3278cafb592e9bc0e6b84a1;p=platform%2Fupstream%2Fllvm.git [SampleFDO] Fix -Wnon-virtual-dtor Make the dtor virtual to fix the warning. --- 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) {