From a160ccb8c3f309064ba9e14656c4c958454ea2cd Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Wed, 30 Nov 2022 14:22:29 +0000 Subject: [PATCH] tint/ir: Fix build Destructors needs to be marked 'override', with no 'virtual' Change-Id: I8648a160e6564c391b2c8be6ec6c7d02927c1707 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/112382 Commit-Queue: Dan Sinclair Kokoro: Kokoro Reviewed-by: Dan Sinclair Auto-Submit: Ben Clayton --- src/tint/ir/instruction.h | 2 +- src/tint/ir/value.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tint/ir/instruction.h b/src/tint/ir/instruction.h index 461b1f707b..0cb5f821e0 100644 --- a/src/tint/ir/instruction.h +++ b/src/tint/ir/instruction.h @@ -68,7 +68,7 @@ class Instruction : public Castable { /// @param instr the instruction to move from Instruction(Instruction&& instr); /// Destructor - ~Instruction(); + ~Instruction() override; /// Copy assign /// @param instr the instruction to copy from diff --git a/src/tint/ir/value.h b/src/tint/ir/value.h index 326931f70b..69ef8dd3a6 100644 --- a/src/tint/ir/value.h +++ b/src/tint/ir/value.h @@ -25,7 +25,7 @@ namespace tint::ir { class Value : public Castable { public: /// Destructor - virtual ~Value(); + ~Value() override; Value(const Value&) = delete; Value(Value&&) = delete;