]> granicus.if.org Git - clang/commitdiff
Fix inverted logic in ParentMap::hasParent()
authorTed Kremenek <kremenek@apple.com>
Fri, 30 Jan 2009 19:06:38 +0000 (19:06 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 30 Jan 2009 19:06:38 +0000 (19:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63410 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ParentMap.h

index 5fb96f54b4c9896c7190ffa2278ac5be14d4a1a8..fae9557b217efc8885be5e98ff4c76f5fafba8c9 100644 (file)
@@ -26,7 +26,7 @@ public:
   Stmt* getParent(Stmt*) const;  
 
   bool hasParent(Stmt* S) const {
-    return !getParent(S);
+    return getParent(S) != 0;
   }
 };