diff options
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); } |