aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/AST/Stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp
index b12518fa78..6d8ebcf864 100644
--- a/lib/AST/Stmt.cpp
+++ b/lib/AST/Stmt.cpp
@@ -57,7 +57,7 @@ void Stmt::Destroy(ASTContext& C) {
void DeclStmt::Destroy(ASTContext& C) {
TheDecl->Destroy(C);
- Stmt::Destroy(C);
+ delete this;
}
void Stmt::PrintStats() {