summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r--clang/lib/AST/Expr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 370f33fbf33..b342507e701 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -654,8 +654,8 @@ const char *CastExpr::getCastKindName() const {
void CastExpr::DoDestroy(ASTContext &C)
{
- if (InheritancePath)
- InheritancePath->Destroy();
+ if (BasePath)
+ BasePath->Destroy();
Expr::DoDestroy(C);
}
OpenPOWER on IntegriCloud