From: Steve Naroff Date: Mon, 13 Jul 2009 21:32:29 +0000 (+0000) Subject: Remove superfluous call to getAsPointerType()... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9deaeca2c9cd28a73914e190aa609faf0da510d8;p=clang Remove superfluous call to getAsPointerType()... git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75509 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp index ee80ccacc2..3ae9c3590d 100644 --- a/lib/Sema/SemaExpr.cpp +++ b/lib/Sema/SemaExpr.cpp @@ -3854,10 +3854,10 @@ inline QualType Sema::CheckAdditionOperands( // C99 6.5.6 // GNU extension: arithmetic on pointer to function Diag(Loc, diag::ext_gnu_ptr_func_arith) << lex->getType() << lex->getSourceRange(); - } else { + } else { // Check if we require a complete type. if (((PExp->getType()->isPointerType() && - !PExp->getType()->getAsPointerType()->isDependentType()) || + !PExp->getType()->isDependentType()) || PExp->getType()->isObjCObjectPointerType()) && RequireCompleteType(Loc, PointeeTy, diag::err_typecheck_arithmetic_incomplete_type,