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 {
public:
Label() = default;
~Label() = default;
virtual ~Label() = default;
virtual void finalCheck() const {
// Assert if label is being destroyed with unresolved branches pending.
......
......@@ -31,6 +31,7 @@ class AssemblerFixup {
public:
AssemblerFixup() = default;
AssemblerFixup(const AssemblerFixup &) = default;
virtual ~AssemblerFixup() = default;
intptr_t position() const {
assert(position_was_set_);
return position_;
......
......@@ -165,7 +165,7 @@ public:
void dumpDest(const Cfg *Func) const;
virtual bool isRedundantAssign() const { return false; }
~Inst() = default;
virtual ~Inst() = default;
protected:
Inst(Cfg *Func, InstKind Kind, SizeT MaxSrcs, Variable *Dest);
......
......@@ -91,7 +91,7 @@ public:
}
/// @}
~Operand() = default;
virtual ~Operand() = default;
protected:
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