Modified CFG pretty-printing to directly use the (reverse) body

iterator of a CompountStmt instead of relying on StmtIterators.

llvm-svn: 43469
This commit is contained in:
Ted Kremenek 2007-10-29 20:41:04 +00:00
parent 2aec186dd0
commit 6d845f0414
1 changed files with 1 additions and 1 deletions

View File

@ -1122,7 +1122,7 @@ void print_stmt(std::ostream&OS, StmtPrinterHelper* Helper, Stmt* S) {
if (Sub->child_begin() != Sub->child_end()) { if (Sub->child_begin() != Sub->child_end()) {
OS << "({ ... ; "; OS << "({ ... ; ";
Helper->handledStmt(*SE->getSubStmt()->child_rbegin(),OS); Helper->handledStmt(*SE->getSubStmt()->body_rbegin(),OS);
OS << " })\n"; OS << " })\n";
return; return;
} }