diff options
author | Anders Carlsson <andersca@mac.com> | 2010-04-24 16:57:13 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-04-24 16:57:13 +0000 |
commit | f1b48b7014992155286d58bb1676f9f51031d18b (patch) | |
tree | 8bbd12ee8c2c73a29c2c08c91dfc7d5448a959cb /lib/AST | |
parent | c70e93c8b1e9dc566bb9a31951c21de7a166d4ac (diff) |
CastExpr should not hold a pointer to the base path. More cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST')
-rw-r--r-- | lib/AST/ASTImporter.cpp | 5 | ||||
-rw-r--r-- | lib/AST/Expr.cpp | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/AST/ASTImporter.cpp b/lib/AST/ASTImporter.cpp index 9766d3a370..d9557d3e4c 100644 --- a/lib/AST/ASTImporter.cpp +++ b/lib/AST/ASTImporter.cpp @@ -2885,9 +2885,10 @@ Expr *ASTNodeImporter::VisitImplicitCastExpr(ImplicitCastExpr *E) { if (!SubExpr) return 0; + // FIXME: Initialize the base path. + CXXBaseSpecifierArray BasePath; return new (Importer.getToContext()) ImplicitCastExpr(T, E->getCastKind(), - SubExpr, - /* FIXME: */0, + SubExpr, BasePath, E->isLvalueCast()); } diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index b342507e70..72ffe00f48 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -654,8 +654,7 @@ const char *CastExpr::getCastKindName() const { void CastExpr::DoDestroy(ASTContext &C) { - if (BasePath) - BasePath->Destroy(); + BasePath.Destroy(); Expr::DoDestroy(C); } |