Fix a silly typo and its pasteo. Thanks to Francois Pichet for noticing my mistake
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114075 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp
index b699a98..2de32b0 100644
--- a/tools/libclang/CIndex.cpp
+++ b/tools/libclang/CIndex.cpp
@@ -3365,7 +3365,7 @@
}
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 @@
}
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))