aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExprMember.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2012-10-12 17:48:40 +0000
committerRichard Trieu <rtrieu@google.com>2012-10-12 17:48:40 +0000
commit47fcbba7c8f621535ed7fa632327264c1c0b84f0 (patch)
tree9fb3b50119868c11464bbfc940d622d6e32396e3 /lib/Sema/SemaExprMember.cpp
parentf4deaef8b816bd43258c30fe8e657ab041b675ad (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.cpp2
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);