summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-05-20 04:10:52 +0000
committerTed Kremenek <kremenek@apple.com>2008-05-20 04:10:52 +0000
commit40e489dfd8220d4f0b3ac1182d84350c00250920 (patch)
treee752e9c53ec6abaf738d52b664228e46458fb7f6 /clang/lib
parentfa8a09e0bc49f3ba909816f48af1f810a9d03089 (diff)
downloadbcm5719-llvm-40e489dfd8220d4f0b3ac1182d84350c00250920.tar.gz
bcm5719-llvm-40e489dfd8220d4f0b3ac1182d84350c00250920.zip
Delete AST nodes, not just Decls.
llvm-svn: 51298
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/Stmt.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp
index 993dda71c98..6ed99661355 100644
--- a/clang/lib/AST/Stmt.cpp
+++ b/clang/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() {
OpenPOWER on IntegriCloud