[cfe-commits] r165811 - /cfe/trunk/lib/Sema/SemaExprMember.cpp

Richard Trieu rtrieu at google.com
Fri Oct 12 10:48:40 PDT 2012


Author: rtrieu
Date: Fri Oct 12 12:48:40 2012
New Revision: 165811

URL: http://llvm.org/viewvc/llvm-project?rev=165811&view=rev
Log:
Change (!ptr != 0) to (!ptr) to make the code more readable.
No functional change.

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

Modified: cfe/trunk/lib/Sema/SemaExprMember.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExprMember.cpp?rev=165811&r1=165810&r2=165811&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExprMember.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExprMember.cpp Fri Oct 12 12:48:40 2012
@@ -1022,7 +1022,7 @@
   // Do the substitution as long as the redefinition type isn't just a
   // possibly-qualified pointer to builtin-id or builtin-Class again.
   opty = redef->getAs<ObjCObjectPointerType>();
-  if (opty && !opty->getObjectType()->getInterface() != 0)
+  if (opty && !opty->getObjectType()->getInterface())
     return false;
 
   base = S.ImpCastExprToType(base.take(), redef, CK_BitCast);





More information about the cfe-commits mailing list