diff options
author | 2019-03-24 02:47:16 -0700 | |
---|---|---|
committer | 2019-03-29 18:18:00 +0000 | |
commit | 39402548017c99f9b33afaa851f412371013e911 (patch) | |
tree | 80c4d53cb7ae12ab9f4800cb358e53d5109593da /compiler/optimizing/nodes.h | |
parent | 2fde9bdc252e209d722f83410f2ced42ab73e8a4 (diff) |
Modernise code to use override specifier
Generated by clang-tidy, with IgnoreDestructors option enabled.
Test: m checkbuild
Bug: 116509795
Change-Id: I5dafa10c2cf605165581b8cf7dd2633ed101ed65
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 4670b3f6ff..fedad0c69a 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -2934,7 +2934,7 @@ class HNullConstant final : public HConstant { size_t ComputeHashCode() const override { return 0; } // The null constant representation is a 0-bit pattern. - virtual bool IsZeroBitPattern() const { return true; } + bool IsZeroBitPattern() const override { return true; } DECLARE_INSTRUCTION(NullConstant); @@ -6316,7 +6316,7 @@ class HLoadClass final : public HInstruction { bool CanBeMoved() const override { return true; } - bool InstructionDataEquals(const HInstruction* other) const; + bool InstructionDataEquals(const HInstruction* other) const override; size_t ComputeHashCode() const override { return type_index_.index_; } |