aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2024-09-03 16:11:58 -0400
committerMarc Poulhiès <poulhies@adacore.com>2024-09-26 14:41:00 +0200
commit6f76ce80fa25559c9e1bd575190be80c1159d398 (patch)
tree860b80e65e82af542bba2478e19739cc4bae08ca /gcc/rust
parent942bbb2357656019caa3f8ebd2d23b09222f039a (diff)
downloadgcc-6f76ce80fa25559c9e1bd575190be80c1159d398.zip
gcc-6f76ce80fa25559c9e1bd575190be80c1159d398.tar.gz
gcc-6f76ce80fa25559c9e1bd575190be80c1159d398.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/rust')
-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 4c298f1..ed1f446 100644
--- a/gcc/rust/checks/errors/borrowck/rust-bir.h
+++ b/gcc/rust/checks/errors/borrowck/rust-bir.h
@@ -139,6 +139,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>