Remove superfluous call to getAsPointerType()...

llvm-svn: 75509
This commit is contained in:
Steve Naroff 2009-07-13 21:32:29 +00:00
parent e4dcecd006
commit a63372da72
1 changed files with 2 additions and 2 deletions

View File

@ -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,