Fix gcc warning.
authorEli Friedman <eli.friedman@gmail.com>
Thu, 30 Jul 2009 00:11:31 +0000 (00:11 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 30 Jul 2009 00:11:31 +0000 (00:11 +0000)
llvm-svn: 77555

clang/lib/Index/Analyzer.cpp

index 1f37a06..1dd2178 100644 (file)
@@ -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();