diff options
Diffstat (limited to 'lib/AST/Stmt.cpp')
-rw-r--r-- | lib/AST/Stmt.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp index 6ed9966135..b12518fa78 100644 --- a/lib/AST/Stmt.cpp +++ b/lib/AST/Stmt.cpp @@ -55,6 +55,11 @@ void Stmt::Destroy(ASTContext& C) { delete this; } +void DeclStmt::Destroy(ASTContext& C) { + TheDecl->Destroy(C); + Stmt::Destroy(C); +} + void Stmt::PrintStats() { // Ensure the table is primed. getStmtInfoTableEntry(Stmt::NullStmtClass); |