From 388ce795398375b54994c159f627f2eeb9c920ad Mon Sep 17 00:00:00 2001 From: Eric Schweitz Date: Mon, 11 Mar 2019 18:37:30 -0700 Subject: [PATCH] [flang] Move virtual dtor to Terminator Original-commit: flang-compiler/f18@68853d602a6a2c21f4f19b91b58fec1f88473dd6 Reviewed-on: https://github.com/flang-compiler/f18/pull/328 --- flang/lib/FIR/statements.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flang/lib/FIR/statements.h b/flang/lib/FIR/statements.h index 0d3d607..a2684e7 100644 --- a/flang/lib/FIR/statements.h +++ b/flang/lib/FIR/statements.h @@ -74,13 +74,13 @@ public: class Stmt_impl { public: using StatementTrait = std::true_type; - virtual ~Stmt_impl() {} }; // Every basic block must end in a terminator class TerminatorStmt_impl : public Stmt_impl { public: virtual std::list succ_blocks() const { return {}; } + virtual ~TerminatorStmt_impl() {} using TerminatorTrait = std::true_type; }; -- 2.7.4