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

Chris Lattner sabre at nondot.org
Fri Jul 13 13:25:36 PDT 2007


Author: lattner
Date: Fri Jul 13 15:25:36 2007
New Revision: 39830

URL: http://llvm.org/viewvc/llvm-project?rev=39830&view=rev
Log:
eliminate extraneous type, add accessors.

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=39830&r1=39829&r2=39830&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Expr.h (original)
+++ cfe/trunk/include/clang/AST/Expr.h Fri Jul 13 15:25:36 2007
@@ -431,12 +431,14 @@
 /// float->double, short->int, etc.
 ///
 class ImplicitCastExpr : public Expr {
-  QualType Ty;
   Expr *Op;
 public:
   ImplicitCastExpr(QualType ty, Expr *op) : 
-    Expr(ImplicitCastExprClass, ty), Ty(ty), Op(op) {}
+    Expr(ImplicitCastExprClass, ty), Op(op) {}
     
+  Expr *getSubExpr() { return Op; }
+  const Expr *getSubExpr() const { return Op; }
+  
   virtual void visit(StmtVisitor &Visitor);
   static bool classof(const Stmt *T) { 
     return T->getStmtClass() == ImplicitCastExprClass; 





More information about the cfe-commits mailing list