From a63372da72ffc925ee09ea1d99a41ac0c73a4183 Mon Sep 17 00:00:00 2001 From: Steve Naroff Date: Mon, 13 Jul 2009 21:32:29 +0000 Subject: [PATCH] Remove superfluous call to getAsPointerType()... llvm-svn: 75509 --- clang/lib/Sema/SemaExpr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index ee80ccacc2b2..3ae9c3590da3 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/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,