Skip to content

Commit 6df09d6

Browse files
committed
[SampleFDO] Fix -Wnon-virtual-dtor
Make the dtor virtual to fix the warning.
1 parent 217c6d6 commit 6df09d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ template <typename BT> class SampleProfileLoaderBaseImpl {
114114
DenseMap<const BasicBlockT *, SmallVector<const BasicBlockT *, 8>>;
115115

116116
protected:
117-
~SampleProfileLoaderBaseImpl() = default;
117+
virtual ~SampleProfileLoaderBaseImpl() = default;
118118
friend class SampleCoverageTracker;
119119

120120
Function &getFunction(FunctionT &F) {

0 commit comments

Comments
 (0)