Update a few virtuals to overrides. (#4143)
These methods are overriding their base class, so switch to override
from virtual.
diff --git a/source/opt/instruction.h b/source/opt/instruction.h
index 4743221..3e557dd 100644
--- a/source/opt/instruction.h
+++ b/source/opt/instruction.h
@@ -209,7 +209,7 @@
Instruction(Instruction&&);
Instruction& operator=(Instruction&&);
- virtual ~Instruction() = default;
+ ~Instruction() override = default;
// Returns a newly allocated instruction that has the same operands, result,
// and type as |this|. The new instruction is not linked into any list.
diff --git a/source/opt/instruction_list.h b/source/opt/instruction_list.h
index 417cbd7..b3e4274 100644
--- a/source/opt/instruction_list.h
+++ b/source/opt/instruction_list.h
@@ -53,7 +53,7 @@
}
// Destroy this list and any instructions in the list.
- inline virtual ~InstructionList();
+ inline ~InstructionList() override;
class iterator : public utils::IntrusiveList<Instruction>::iterator {
public: