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:
parent
2aec186dd0
commit
6d845f0414
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue