[cfe-commits] r75509 - /cfe/trunk/lib/Sema/SemaExpr.cpp

Steve Naroff snaroff at apple.com
Mon Jul 13 14:32:29 PDT 2009


Author: snaroff
Date: Mon Jul 13 16:32:29 2009
New Revision: 75509

URL: http://llvm.org/viewvc/llvm-project?rev=75509&view=rev
Log:
Remove superfluous call to getAsPointerType()...

Modified:
    cfe/trunk/lib/Sema/SemaExpr.cpp

Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=75509&r1=75508&r2=75509&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Mon Jul 13 16:32:29 2009
@@ -3854,10 +3854,10 @@
         // 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,





More information about the cfe-commits mailing list