diff options
Diffstat (limited to 'lib/AST/ExprConstant.cpp')
-rw-r--r-- | lib/AST/ExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index b6613e7cdc..c534d03a5e 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -115,7 +115,7 @@ static bool EvalPointerValueAsBool(LValue& Value, bool& Result) { Result = Base || !Value.Offset.isZero(); - const DeclRefExpr* DeclRef = dyn_cast<DeclRefExpr>(Base); + const DeclRefExpr* DeclRef = dyn_cast_or_null<DeclRefExpr>(Base); if (!DeclRef) return true; |