From: Eli Friedman Date: Thu, 30 Jul 2009 00:11:31 +0000 (+0000) Subject: Fix gcc warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bebc467b2455fa35fec2258b5ae088759f1ee952;p=clang Fix gcc warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77555 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Index/Analyzer.cpp b/lib/Index/Analyzer.cpp index 1f37a06642..1dd2178ad4 100644 --- a/lib/Index/Analyzer.cpp +++ b/lib/Index/Analyzer.cpp @@ -363,8 +363,8 @@ public: if (MsgIFaceEnt.isInvalid()) return true; - if (!CanBeInstanceMethod && D->isInstanceMethod() || - !CanBeClassMethod && D->isClassMethod()) + if ((!CanBeInstanceMethod && D->isInstanceMethod()) || + (!CanBeClassMethod && D->isClassMethod())) return false; ObjCInterfaceDecl *IFace = D->getClassInterface();