Minor cleanups to pretty-printing for loops in CFGs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41623 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/CFG.cpp b/AST/CFG.cpp
index f2a1caa..2c9336e 100644
--- a/AST/CFG.cpp
+++ b/AST/CFG.cpp
@@ -938,11 +938,11 @@
void VisitForStmt(ForStmt* F) {
OS << "for (" ;
- if (Stmt* I = F->getInit()) I->printPretty(OS);
- OS << " ; ";
+ if (F->getInit()) OS << "...";
+ OS << "; ";
if (Stmt* C = F->getCond()) C->printPretty(OS);
- OS << " ; ";
- if (Stmt* I = F->getInc()) I->printPretty(OS);
+ OS << "; ";
+ if (F->getInc()) OS << "...";
OS << ")\n";
}