From d0d560a0975c2f8c4a9559e84ec556b6a0baf7df Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 13 Jul 2007 20:25:36 +0000 Subject: [PATCH] eliminate extraneous type, add accessors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39830 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Expr.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index d5e3407f2f..b1b19fab1f 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -431,12 +431,14 @@ public: /// 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; -- 2.40.0