]> granicus.if.org Git - clang/commitdiff
Change (!ptr != 0) to (!ptr) to make the code more readable.
authorRichard Trieu <rtrieu@google.com>
Fri, 12 Oct 2012 17:48:40 +0000 (17:48 +0000)
committerRichard Trieu <rtrieu@google.com>
Fri, 12 Oct 2012 17:48:40 +0000 (17:48 +0000)
No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165811 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExprMember.cpp

index ff580697e6dacbb58bae414d70d9079ea8eb24e5..a44fbf2424e221969922aea27f6b1bd2198fae09 100644 (file)
@@ -1022,7 +1022,7 @@ static bool ShouldTryAgainWithRedefinitionType(Sema &S, ExprResult &base) {
   // 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);