]> granicus.if.org Git - clang/commitdiff
Modified CFG pretty-printing to directly use the (reverse) body
authorTed Kremenek <kremenek@apple.com>
Mon, 29 Oct 2007 20:41:04 +0000 (20:41 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 29 Oct 2007 20:41:04 +0000 (20:41 +0000)
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

AST/CFG.cpp

index 42688e412ef0cdae59b4203f4078f40a45d1d52c..42f401b84755a61065e7e3ef7834c449fe25e74b 100644 (file)
@@ -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;
       }