projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
217c6d6
)
[SampleFDO] Fix -Wnon-virtual-dtor
author
Rong Xu
<xur@google.com>
Fri, 3 Sep 2021 19:19:03 +0000
(12:19 -0700)
committer
Rong Xu
<xur@google.com>
Fri, 3 Sep 2021 19:20:53 +0000
(12:20 -0700)
Make the dtor virtual to fix the warning.
llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
b/llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
index
2a510e6
..
1cef5e7
100644
(file)
--- a/
llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
+++ b/
llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
@@
-114,7
+114,7
@@
public:
DenseMap<const BasicBlockT *, SmallVector<const BasicBlockT *, 8>>;
protected:
- ~SampleProfileLoaderBaseImpl() = default;
+
virtual
~SampleProfileLoaderBaseImpl() = default;
friend class SampleCoverageTracker;
Function &getFunction(FunctionT &F) {