diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-13 20:25:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-13 20:25:36 +0000 |
commit | d0d560a0975c2f8c4a9559e84ec556b6a0baf7df (patch) | |
tree | cde46f66ce49ae8a4ce4bfa5e8e4cb92b925da49 | |
parent | 8da1cb633967a8b0b235854508638f42197d4acb (diff) |
eliminate extraneous type, add accessors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39830 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Expr.h | 6 |
1 files 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; |