diff options
author | Richard Trieu <rtrieu@google.com> | 2012-10-12 17:48:40 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2012-10-12 17:48:40 +0000 |
commit | 47fcbba7c8f621535ed7fa632327264c1c0b84f0 (patch) | |
tree | 9fb3b50119868c11464bbfc940d622d6e32396e3 /lib/Sema/SemaExprMember.cpp | |
parent | f4deaef8b816bd43258c30fe8e657ab041b675ad (diff) |
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
Diffstat (limited to 'lib/Sema/SemaExprMember.cpp')
-rw-r--r-- | lib/Sema/SemaExprMember.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<ObjCObjectPointerType>(); - if (opty && !opty->getObjectType()->getInterface() != 0) + if (opty && !opty->getObjectType()->getInterface()) return false; base = S.ImpCastExprToType(base.take(), redef, CK_BitCast); |