Index: cfe/trunk/lib/AST/ASTDumper.cpp =================================================================== --- cfe/trunk/lib/AST/ASTDumper.cpp +++ cfe/trunk/lib/AST/ASTDumper.cpp @@ -1989,18 +1989,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); });