diff options
author | Sam Bishop <sam@bishop.dhs.org> | 2008-04-03 05:29:20 +0000 |
---|---|---|
committer | Sam Bishop <sam@bishop.dhs.org> | 2008-04-03 05:29:20 +0000 |
commit | 7dd1cf4031a2a06be3e3c15353ff34d5ee6e8754 (patch) | |
tree | f00e4a05960e13c231a9433fb856a131c6e361ee | |
parent | 1c1924525d2be56bfdcc3aae1203cba6dbdec8b4 (diff) |
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
-rw-r--r-- | include/clang/AST/Decl.h | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |