From: Chris Lattner Date: Sat, 4 Aug 2007 00:14:36 +0000 (+0000) Subject: fix constness issues. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1b607db38501f73c8e1461fc749a6b0e469f157;p=clang fix constness issues. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40798 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index e7d770a224..df5f68da10 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -791,10 +791,14 @@ public: : Expr(ChooseExprClass, t), Cond(cond), LHS(lhs), RHS(rhs), BuiltinLoc(BLoc), RParenLoc(RP) {} - Expr *getCond() const { return Cond; } - Expr *getLHS() const { return LHS; } - Expr *getRHS() const { return RHS; } - + Expr *getCond() { return Cond; } + Expr *getLHS() { return LHS; } + Expr *getRHS() { return RHS; } + + const Expr *getCond() const { return Cond; } + const Expr *getLHS() const { return LHS; } + const Expr *getRHS() const { return RHS; } + virtual SourceRange getSourceRange() const { return SourceRange(BuiltinLoc, RParenLoc); }