aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/Decl.h4
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; }