diff options
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index cb3518ae83c..c06943f6718 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -164,7 +164,7 @@ void Sema::DiagnoseSentinelCalls(NamedDecl *D, SourceLocation Loc,    if (!sentinelExpr) return;    if (sentinelExpr->isTypeDependent()) return;    if (sentinelExpr->isValueDependent()) return; -  if (sentinelExpr->getType()->isPointerType() && +  if (sentinelExpr->getType()->isAnyPointerType() &&        sentinelExpr->IgnoreParenCasts()->isNullPointerConstant(Context,                                              Expr::NPC_ValueDependentIsNull))      return; | 

