diff options
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |