aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/ParentMap.h2
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;
}
};