forked from OSchip/llvm-project
Remove superfluous call to getAsPointerType()...
llvm-svn: 75509
This commit is contained in:
parent
e4dcecd006
commit
a63372da72
|
@ -3854,10 +3854,10 @@ inline QualType Sema::CheckAdditionOperands( // C99 6.5.6
|
||||||
// GNU extension: arithmetic on pointer to function
|
// GNU extension: arithmetic on pointer to function
|
||||||
Diag(Loc, diag::ext_gnu_ptr_func_arith)
|
Diag(Loc, diag::ext_gnu_ptr_func_arith)
|
||||||
<< lex->getType() << lex->getSourceRange();
|
<< lex->getType() << lex->getSourceRange();
|
||||||
} else {
|
} else {
|
||||||
// Check if we require a complete type.
|
// Check if we require a complete type.
|
||||||
if (((PExp->getType()->isPointerType() &&
|
if (((PExp->getType()->isPointerType() &&
|
||||||
!PExp->getType()->getAsPointerType()->isDependentType()) ||
|
!PExp->getType()->isDependentType()) ||
|
||||||
PExp->getType()->isObjCObjectPointerType()) &&
|
PExp->getType()->isObjCObjectPointerType()) &&
|
||||||
RequireCompleteType(Loc, PointeeTy,
|
RequireCompleteType(Loc, PointeeTy,
|
||||||
diag::err_typecheck_arithmetic_incomplete_type,
|
diag::err_typecheck_arithmetic_incomplete_type,
|
||||||
|
|
Loading…
Reference in New Issue