1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Fix static analysis warnings about classes with virtual methods not having virtual destructors

This commit is contained in:
Simon Pilgrim 2020-03-20 19:31:29 +00:00
parent 45466ad003
commit 64102f02b9
7 changed files with 6 additions and 8 deletions

View File

@ -126,7 +126,7 @@ protected:
explicit FoldingSetBase(unsigned Log2InitSize = 6);
FoldingSetBase(FoldingSetBase &&Arg);
FoldingSetBase &operator=(FoldingSetBase &&RHS);
~FoldingSetBase();
virtual ~FoldingSetBase();
public:
//===--------------------------------------------------------------------===//

View File

@ -46,7 +46,7 @@ public:
Entry(Entry &&) = default;
Entry &operator=(const Entry &) = default;
Entry &operator=(Entry &&) = default;
~Entry() = default;
virtual ~Entry() = default;
public:

View File

@ -104,7 +104,7 @@ protected:
SectionKind Kind;
MCSection(SectionVariant V, SectionKind K, MCSymbol *Begin);
~MCSection();
virtual ~MCSection() = default;
public:
MCSection(const MCSection &) = delete;

View File

@ -518,7 +518,7 @@ protected:
GenericOptionValue() = default;
GenericOptionValue(const GenericOptionValue&) = default;
GenericOptionValue &operator=(const GenericOptionValue &) = default;
~GenericOptionValue() = default;
virtual ~GenericOptionValue() = default;
private:
virtual void anchor();

View File

@ -175,7 +175,7 @@ protected:
std::unique_ptr<Document> &Doc;
SMRange SourceRange;
~Node() = default;
virtual ~Node() = default;
private:
unsigned int TypeID;

View File

@ -54,7 +54,7 @@ protected:
ValueMaterializer() = default;
ValueMaterializer(const ValueMaterializer &) = default;
ValueMaterializer &operator=(const ValueMaterializer &) = default;
~ValueMaterializer() = default;
virtual ~ValueMaterializer() = default;
public:
/// This method can be implemented to generate a mapped Value on demand. For

View File

@ -32,8 +32,6 @@ MCSymbol *MCSection::getEndSymbol(MCContext &Ctx) {
bool MCSection::hasEnded() const { return End && End->isInSection(); }
MCSection::~MCSection() = default;
void MCSection::setBundleLockState(BundleLockStateType NewState) {
if (NewState == NotBundleLocked) {
if (BundleLockNestingDepth == 0) {