[cfe-commits] r40798 - /cfe/trunk/include/clang/AST/Expr.h

Chris Lattner sabre at nondot.org
Fri Aug 3 17:14:36 PDT 2007


Author: lattner
Date: Fri Aug  3 19:14:36 2007
New Revision: 40798

URL: http://llvm.org/viewvc/llvm-project?rev=40798&view=rev
Log:
fix constness issues.

Modified:
    cfe/trunk/include/clang/AST/Expr.h

Modified: cfe/trunk/include/clang/AST/Expr.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Expr.h?rev=40798&r1=40797&r2=40798&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Fri Aug  3 19:14:36 2007
@@ -791,10 +791,14 @@
     : 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);
   }





More information about the cfe-commits mailing list