aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2024-09-03 16:11:58 -0400
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2024-09-06 11:00:45 +0000
commit84f772c15bca5f0ac589be5df67918b5fc141bc8 (patch)
treeacfcb63b3831ae5f7aa0da0d58aa9f4f4ca0e0e5 /gcc
parent12af831615a77e1920de5943bf2251b6c01b0e25 (diff)
downloadgcc-84f772c15bca5f0ac589be5df67918b5fc141bc8.zip
gcc-84f772c15bca5f0ac589be5df67918b5fc141bc8.tar.gz
gcc-84f772c15bca5f0ac589be5df67918b5fc141bc8.tar.bz2
Add virtual destructor to AbstractExpr
gcc/rust/ChangeLog: * checks/errors/borrowck/rust-bir.h (class AbstractExpr): Add virtual destructor. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/checks/errors/borrowck/rust-bir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/checks/errors/borrowck/rust-bir.h b/gcc/rust/checks/errors/borrowck/rust-bir.h
index 3e4ea9a..f239465 100644
--- a/gcc/rust/checks/errors/borrowck/rust-bir.h
+++ b/gcc/rust/checks/errors/borrowck/rust-bir.h
@@ -172,6 +172,8 @@ class AbstractExpr : public Visitable
public:
explicit AbstractExpr (ExprKind kind) : kind (kind) {}
WARN_UNUSED_RESULT ExprKind get_kind () const { return kind; }
+
+ virtual ~AbstractExpr () {}
};
class InitializerExpr : public VisitableImpl<AbstractExpr, InitializerExpr>