From 6d845f04142e6195374c79a334a05859d91c252f Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Mon, 29 Oct 2007 20:41:04 +0000 Subject: [PATCH] Modified CFG pretty-printing to directly use the (reverse) body iterator of a CompountStmt instead of relying on StmtIterators. llvm-svn: 43469 --- clang/AST/CFG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/AST/CFG.cpp b/clang/AST/CFG.cpp index 42688e412ef0..42f401b84755 100644 --- a/clang/AST/CFG.cpp +++ b/clang/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; }