From f94b793472a8427e0507862cd5595cc92e70f53c Mon Sep 17 00:00:00 2001 From: Alexander Arlt Date: Wed, 2 May 2018 13:29:16 +0200 Subject: Add virtual destructors on base classes. --- libevmasm/ConstantOptimiser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libevmasm/ConstantOptimiser.h') diff --git a/libevmasm/ConstantOptimiser.h b/libevmasm/ConstantOptimiser.h index 9b60b26b..f0deb387 100644 --- a/libevmasm/ConstantOptimiser.h +++ b/libevmasm/ConstantOptimiser.h @@ -67,6 +67,7 @@ public: explicit ConstantOptimisationMethod(Params const& _params, u256 const& _value): m_params(_params), m_value(_value) {} + virtual ~ConstantOptimisationMethod() = default; virtual bigint gasNeeded() const = 0; /// Executes the method, potentially appending to the assembly and returns a vector of /// assembly items the constant should be relpaced with in one sweep. -- cgit