diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-05-20 04:10:52 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-05-20 04:10:52 +0000 |
commit | f809e3bd0c3d063f22ba34981072dae306ca9272 (patch) | |
tree | 744269cc382a701b8b45888f31139bd9cbdcd54e /lib/AST/Stmt.cpp | |
parent | b65cf41707d190d5ce3d48b9e5bd2dc9d7b4a4c0 (diff) |
Delete AST nodes, not just Decls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Stmt.cpp')
-rw-r--r-- | lib/AST/Stmt.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index 993dda71c9..6ed9966135 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp @@ -49,7 +49,10 @@ void Stmt::DestroyChildren(ASTContext& C) { void Stmt::Destroy(ASTContext& C) { DestroyChildren(C); - this->~Stmt(); + // FIXME: Eventually all Stmts should be allocated with the allocator + // in ASTContext, just like with Decls. + // this->~Stmt(); + delete this; } void Stmt::PrintStats() { |