Fix a silly typo and its pasteo. Thanks to Francois Pichet for noticing my mistake

llvm-svn: 114075
This commit is contained in:
Douglas Gregor 2010-09-16 13:54:00 +00:00
parent c0e9b8d8bb
commit ae18530d03
1 changed files with 2 additions and 2 deletions

View 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))