diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-04-24 07:25:40 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-04-24 07:25:40 +0000 |
commit | 96bbe19aaa39b49a9da60a5a25fad7fc3cd471a2 (patch) | |
tree | aa82ace03d757c151144e7af9b96415cf93ebf43 /tools | |
parent | 017dd74979c74c8950f733938953b98cfa250478 (diff) |
Fix typo in comparison in clang_CXCursorSet_contains().
Fixes PR 10124.
Patch by Jens Kilian.
Thanks to Nikola Smiljanic for following up.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libclang/CXCursor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libclang/CXCursor.cpp b/tools/libclang/CXCursor.cpp index b5682055b9..2cdb71bb02 100644 --- a/tools/libclang/CXCursor.cpp +++ b/tools/libclang/CXCursor.cpp @@ -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) { |