forked from OSchip/llvm-project
Revert GCC -Wnon-virtual-dtor workarounds "[SCEV] Fix GCC -Wnon-virtual-dtor" & "[SampleFDO] Fix -Wnon-virtual-dtor"
This reverts commits4852c770fe
and6df09d6ccb
. After D109404, -Wnon-virtual-dtor will not be added when the host compiler is GCC.
This commit is contained in:
parent
813235947d
commit
ca867ef47b
|
@ -209,8 +209,7 @@ public:
|
|||
|
||||
protected:
|
||||
SCEVPredicateKind Kind;
|
||||
// Use virtual to suppress -Wnon-virtual-dtor in the presence of friend.
|
||||
virtual ~SCEVPredicate() = default;
|
||||
~SCEVPredicate() = default;
|
||||
SCEVPredicate(const SCEVPredicate &) = default;
|
||||
SCEVPredicate &operator=(const SCEVPredicate &) = default;
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ public:
|
|||
DenseMap<const BasicBlockT *, SmallVector<const BasicBlockT *, 8>>;
|
||||
|
||||
protected:
|
||||
virtual ~SampleProfileLoaderBaseImpl() = default;
|
||||
~SampleProfileLoaderBaseImpl() = default;
|
||||
friend class SampleCoverageTracker;
|
||||
|
||||
Function &getFunction(FunctionT &F) {
|
||||
|
|
Loading…
Reference in New Issue