diff options
-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; |