]> granicus.if.org Git - clang/commitdiff
Fix a silly typo and its pasteo. Thanks to Francois Pichet for noticing my mistake
authorDouglas Gregor <dgregor@apple.com>
Thu, 16 Sep 2010 13:54:00 +0000 (13:54 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 16 Sep 2010 13:54:00 +0000 (13:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114075 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CIndex.cpp

index b699a98e12882d3b203b5447ea671a07dc9463a7..2de32b0715c67c65fa3919ccb645a0edbc05cefd 100644 (file)
@@ -3365,7 +3365,7 @@ unsigned clang_isCursorDefinition(CXCursor C) {
 }
 
 unsigned clang_getNumOverloadedDecls(CXCursor C) {
-  if (!C.kind == CXCursor_OverloadedDeclRef)
+  if (C.kind != CXCursor_OverloadedDeclRef)
     return 0;
   
   OverloadedDeclRefStorage Storage = getCursorOverloadedDeclRef(C).first;
@@ -3388,7 +3388,7 @@ unsigned clang_getNumOverloadedDecls(CXCursor C) {
 }
 
 CXCursor clang_getOverloadedDecl(CXCursor cursor, unsigned index) {
-  if (!cursor.kind == CXCursor_OverloadedDeclRef)
+  if (cursor.kind != CXCursor_OverloadedDeclRef)
     return clang_getNullCursor();
 
   if (index >= clang_getNumOverloadedDecls(cursor))