[cfe-commits] r63410 - /cfe/trunk/include/clang/AST/ParentMap.h

Ted Kremenek kremenek at apple.com
Fri Jan 30 11:06:39 PST 2009


Author: kremenek
Date: Fri Jan 30 13:06:38 2009
New Revision: 63410

URL: http://llvm.org/viewvc/llvm-project?rev=63410&view=rev
Log:
Fix inverted logic in ParentMap::hasParent()

Modified:
    cfe/trunk/include/clang/AST/ParentMap.h

Modified: cfe/trunk/include/clang/AST/ParentMap.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ParentMap.h?rev=63410&r1=63409&r2=63410&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/ParentMap.h (original)
+++ cfe/trunk/include/clang/AST/ParentMap.h Fri Jan 30 13:06:38 2009
@@ -26,7 +26,7 @@
   Stmt* getParent(Stmt*) const;  
 
   bool hasParent(Stmt* S) const {
-    return !getParent(S);
+    return getParent(S) != 0;
   }
 };
   





More information about the cfe-commits mailing list