diff options
Diffstat (limited to 'include/clang/AST/DeclBase.h')
-rw-r--r-- | include/clang/AST/DeclBase.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h index ec3c753051..058cb9223c 100644 --- a/include/clang/AST/DeclBase.h +++ b/include/clang/AST/DeclBase.h @@ -118,12 +118,10 @@ protected: HasAttrs(false) { 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; } |