Skip to content

Commit f8af06d

Browse files
committed
Fix -Wnon-virtual-dtor by making the ctor protected
1 parent 2518cc6 commit f8af06d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/include/llvm/ProfileData/SampleProfileLoaderBaseImpl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class SampleProfileLoaderBaseImpl {
7373
void dump() { Reader->dump(); }
7474

7575
protected:
76+
~SampleProfileLoaderBaseImpl() = default;
7677
friend class SampleCoverageTracker;
7778

7879
unsigned getFunctionLoc(Function &F);

0 commit comments

Comments
 (0)