]> granicus.if.org Git - clang/commitdiff
fix constness issues.
authorChris Lattner <sabre@nondot.org>
Sat, 4 Aug 2007 00:14:36 +0000 (00:14 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 4 Aug 2007 00:14:36 +0000 (00:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40798 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Expr.h

index e7d770a2247f7a56d0ca97385f2eda03363ed0d6..df5f68da108b39af0cc639b7eb67a3e5aeb83172 100644 (file)
@@ -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);
   }