diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-01-30 19:06:38 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-01-30 19:06:38 +0000 |
commit | e4173c25c28bee676cfa02aa8ecbf8db3517ef70 (patch) | |
tree | f00643b3d925b4186ba8e8381dfc1297f40b5a7f | |
parent | 65f5e64a7ab7f04d961a032b31fe5371ef5e1d92 (diff) |
Fix inverted logic in ParentMap::hasParent()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63410 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/ParentMap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/AST/ParentMap.h b/include/clang/AST/ParentMap.h index 5fb96f54b4..fae9557b21 100644 --- a/include/clang/AST/ParentMap.h +++ b/include/clang/AST/ParentMap.h @@ -26,7 +26,7 @@ public: Stmt* getParent(Stmt*) const; bool hasParent(Stmt* S) const { - return !getParent(S); + return getParent(S) != 0; } }; |