forked from OSchip/llvm-project
Fix typo in comparison in clang_CXCursorSet_contains().
Fixes PR 10124. Patch by Jens Kilian. Thanks to Nikola Smiljanic for following up. llvm-svn: 180177
This commit is contained in:
parent
c0b98663e9
commit
29b28e8f07
|
@ -1045,7 +1045,7 @@ unsigned clang_CXCursorSet_contains(CXCursorSet set, CXCursor cursor) {
|
|||
CXCursorSet_Impl *setImpl = unpackCXCursorSet(set);
|
||||
if (!setImpl)
|
||||
return 0;
|
||||
return setImpl->find(cursor) == setImpl->end();
|
||||
return setImpl->find(cursor) != setImpl->end();
|
||||
}
|
||||
|
||||
unsigned clang_CXCursorSet_insert(CXCursorSet set, CXCursor cursor) {
|
||||
|
|
Loading…
Reference in New Issue