From 7dd1cf4031a2a06be3e3c15353ff34d5ee6e8754 Mon Sep 17 00:00:00 2001 From: Sam Bishop Date: Thu, 3 Apr 2008 05:29:20 +0000 Subject: [PATCH] Temporarily make the Decl virtual destructor public, so that calls to "delete" can be tested on derived classes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49141 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Decl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 3db06cc0f0..75b3ff7040 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -126,9 +126,11 @@ protected: if (Decl::CollectingStats()) addDeclKind(DK); } +public: + // TODO: This should probably be made protected once derived classes have + // destructors. virtual ~Decl(); -public: SourceLocation getLocation() const { return Loc; } void setLocation(SourceLocation L) { Loc = L; } -- 2.40.0