From: Ted Kremenek Date: Fri, 27 Mar 2009 22:00:38 +0000 (+0000) Subject: Add missing header file change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ced21016cec1f189a695857bed103ecc9e3f3696;p=clang Add missing header file change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67871 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/ParentMap.h b/include/clang/AST/ParentMap.h index fae9557b21..94890e3feb 100644 --- a/include/clang/AST/ParentMap.h +++ b/include/clang/AST/ParentMap.h @@ -23,7 +23,11 @@ public: ParentMap(Stmt* ASTRoot); ~ParentMap(); - Stmt* getParent(Stmt*) const; + Stmt* getParent(Stmt*) const; + + const Stmt* getParent(const Stmt* S) const { + return getParent(const_cast(S)); + } bool hasParent(Stmt* S) const { return getParent(S) != 0;