forked from OSchip/llvm-project
Remove superfluous call to getAsPointerType()...
llvm-svn: 75509
This commit is contained in:
parent
e4dcecd006
commit
a63372da72
|
@ -3857,7 +3857,7 @@ inline QualType Sema::CheckAdditionOperands( // C99 6.5.6
|
|||
} 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,
|
||||
|
|
Loading…
Reference in New Issue