Index: lib/AST/ASTDumper.cpp =================================================================== --- lib/AST/ASTDumper.cpp +++ lib/AST/ASTDumper.cpp @@ -1984,18 +1984,13 @@ return; } + ConstStmtVisitor::Visit(S); + // Some statements have custom mechanisms for dumping their children. - if (const DeclStmt *DS = dyn_cast(S)) { - VisitDeclStmt(DS); - return; - } - if (const GenericSelectionExpr *GSE = dyn_cast(S)) { - VisitGenericSelectionExpr(GSE); + if (isa(S) || isa(S)) { return; } - ConstStmtVisitor::Visit(S); - for (const Stmt *SubStmt : S->children()) dumpStmt(SubStmt); });