Commit fc707ffe by Sean Klein

Fix clang warning "has virtual functions but non-virtual destructor".

BUG= None R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1741733003 .
parent e641e92c
...@@ -46,7 +46,7 @@ class Label { ...@@ -46,7 +46,7 @@ class Label {
public: public:
Label() = default; Label() = default;
~Label() = default; virtual ~Label() = default;
virtual void finalCheck() const { virtual void finalCheck() const {
// Assert if label is being destroyed with unresolved branches pending. // Assert if label is being destroyed with unresolved branches pending.
......
...@@ -31,6 +31,7 @@ class AssemblerFixup { ...@@ -31,6 +31,7 @@ class AssemblerFixup {
public: public:
AssemblerFixup() = default; AssemblerFixup() = default;
AssemblerFixup(const AssemblerFixup &) = default; AssemblerFixup(const AssemblerFixup &) = default;
virtual ~AssemblerFixup() = default;
intptr_t position() const { intptr_t position() const {
assert(position_was_set_); assert(position_was_set_);
return position_; return position_;
......
...@@ -165,7 +165,7 @@ public: ...@@ -165,7 +165,7 @@ public:
void dumpDest(const Cfg *Func) const; void dumpDest(const Cfg *Func) const;
virtual bool isRedundantAssign() const { return false; } virtual bool isRedundantAssign() const { return false; }
~Inst() = default; virtual ~Inst() = default;
protected: protected:
Inst(Cfg *Func, InstKind Kind, SizeT MaxSrcs, Variable *Dest); Inst(Cfg *Func, InstKind Kind, SizeT MaxSrcs, Variable *Dest);
......
...@@ -91,7 +91,7 @@ public: ...@@ -91,7 +91,7 @@ public:
} }
/// @} /// @}
~Operand() = default; virtual ~Operand() = default;
protected: protected:
Operand(OperandKind Kind, Type Ty) : Ty(Ty), Kind(Kind) { Operand(OperandKind Kind, Type Ty) : Ty(Ty), Kind(Kind) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment