aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AST/CFG.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/AST/CFG.cpp b/AST/CFG.cpp
index f2a1caa373..2c9336e381 100644
--- a/AST/CFG.cpp
+++ b/AST/CFG.cpp
@@ -938,11 +938,11 @@ public:
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";
}