From c1b607db38501f73c8e1461fc749a6b0e469f157 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 4 Aug 2007 00:14:36 +0000 Subject: [PATCH] fix constness issues. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40798 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Expr.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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); } -- 2.50.1