diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-10-29 20:41:04 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-10-29 20:41:04 +0000 |
commit | 7a9d9d71fa208dc23fd67d03ce052d4ef60a8d04 (patch) | |
tree | 47b346b2699cd1c9a87d13a26df42bd503cbd560 | |
parent | 65f31e451c8d631f0e76cb9c8935465d68830cb1 (diff) |
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
-rw-r--r-- | AST/CFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |