From: Richard Trieu Date: Fri, 12 Oct 2012 17:48:40 +0000 (+0000) Subject: Change (!ptr != 0) to (!ptr) to make the code more readable. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47fcbba7c8f621535ed7fa632327264c1c0b84f0;p=clang Change (!ptr != 0) to (!ptr) to make the code more readable. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165811 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaExprMember.cpp b/lib/Sema/SemaExprMember.cpp index ff580697e6..a44fbf2424 100644 --- a/lib/Sema/SemaExprMember.cpp +++ b/lib/Sema/SemaExprMember.cpp @@ -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(); - if (opty && !opty->getObjectType()->getInterface() != 0) + if (opty && !opty->getObjectType()->getInterface()) return false; base = S.ImpCastExprToType(base.take(), redef, CK_BitCast);