diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-08-30 21:28:02 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-08-30 21:28:02 +0000 |
commit | 535bb20b6e252809bc17cc59b5d71b5e5e549e70 (patch) | |
tree | 911a45e13fe835a2bb6c372ebde671a1eef13b7b | |
parent | 29ccaa186ac27bcb414c5acb069f6438b27dd5e7 (diff) |
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
-rw-r--r-- | AST/CFG.cpp | 8 |
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"; } |