commit | a3bddeda81ca784bed5501d79e1e7c53befaa91d | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Fri Apr 23 21:02:34 2010 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Fri Apr 23 21:02:34 2010 +0000 |
tree | 4c66e0868d316d85c8cb0dfb8f7eefd988ba7353 | |
parent | 409c99edb8b623403fade6f3a9e9c86acda74455 [diff] [blame] |
Destroy the inheritance path. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102211 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 036d5ef..370f33f 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp
@@ -652,6 +652,13 @@ return 0; } +void CastExpr::DoDestroy(ASTContext &C) +{ + if (InheritancePath) + InheritancePath->Destroy(); + Expr::DoDestroy(C); +} + Expr *CastExpr::getSubExprAsWritten() { Expr *SubExpr = 0; CastExpr *E = this;