From: Ted Kremenek Date: Mon, 29 Oct 2007 20:41:04 +0000 (+0000) Subject: Modified CFG pretty-printing to directly use the (reverse) body X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a9d9d71fa208dc23fd67d03ce052d4ef60a8d04;p=clang Modified CFG pretty-printing to directly use the (reverse) body iterator of a CompountStmt instead of relying on StmtIterators. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43469 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/CFG.cpp b/AST/CFG.cpp index 42688e412e..42f401b847 100644 --- a/AST/CFG.cpp +++ b/AST/CFG.cpp @@ -1122,7 +1122,7 @@ void print_stmt(std::ostream&OS, StmtPrinterHelper* Helper, Stmt* S) { if (Sub->child_begin() != Sub->child_end()) { OS << "({ ... ; "; - Helper->handledStmt(*SE->getSubStmt()->child_rbegin(),OS); + Helper->handledStmt(*SE->getSubStmt()->body_rbegin(),OS); OS << " })\n"; return; }