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 | 0c509eeac7353a27bd5812136cc454b4e34c2ff1 (patch) | |
tree | 328b840483cc253a45d408af45aa103013978c9b /clang/lib/AST/Expr.cpp | |
parent | 32f21a63ea687bd70bc493e4ffe125d8ace3eba2 (diff) | |
download | bcm5719-llvm-0c509eeac7353a27bd5812136cc454b4e34c2ff1.tar.gz bcm5719-llvm-0c509eeac7353a27bd5812136cc454b4e34c2ff1.zip |
CastExpr should not hold a pointer to the base path. More cleanup.
llvm-svn: 102249
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r-- | clang/lib/AST/Expr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp index b342507e701..72ffe00f486 100644 --- a/clang/lib/AST/Expr.cpp +++ b/clang/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); } |