diff --git a/lib/AST/StmtDumper.cpp b/lib/AST/StmtDumper.cpp index cf71d6b986..93bf8755d5 100644 --- a/lib/AST/StmtDumper.cpp +++ b/lib/AST/StmtDumper.cpp @@ -115,6 +115,7 @@ namespace { // Exprs void VisitExpr(Expr *Node); void VisitCastExpr(CastExpr *Node); + void VisitImplicitCastExpr(ImplicitCastExpr *Node); void VisitDeclRefExpr(DeclRefExpr *Node); void VisitPredefinedExpr(PredefinedExpr *Node); void VisitCharacterLiteral(CharacterLiteral *Node); @@ -301,6 +302,12 @@ void StmtDumper::VisitCastExpr(CastExpr *Node) { fprintf(F, " <%s>", Node->getCastKindName()); } +void StmtDumper::VisitImplicitCastExpr(ImplicitCastExpr *Node) { + VisitCastExpr(Node); + if (Node->isLvalueCast()) + fprintf(F, " lvalue"); +} + void StmtDumper::VisitDeclRefExpr(DeclRefExpr *Node) { DumpExpr(Node);