[cfe-commits] r39535 - /cfe/cfe/trunk/AST/StmtPrinter.cpp

clattner at cs.uiuc.edu clattner at cs.uiuc.edu
Wed Jul 11 09:45:22 PDT 2007


Author: clattner
Date: Wed Jul 11 11:45:22 2007
New Revision: 39535

URL: http://llvm.org/viewvc/llvm-project?rev=39535&view=rev
Log:
fix a small printer bug, to emit:

  a = b;
  {
    int c;
    c = a + b;
    int d;
    d++;
  }
  int e;

instead of:

  a = b;
  {
    int c;
    c = a + b;
    int d;
    d++;
  }  int e;

Modified:
    cfe/cfe/trunk/AST/StmtPrinter.cpp

Modified: cfe/cfe/trunk/AST/StmtPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/StmtPrinter.cpp?rev=39535&r1=39534&r2=39535&view=diff

==============================================================================
--- cfe/cfe/trunk/AST/StmtPrinter.cpp (original)
+++ cfe/cfe/trunk/AST/StmtPrinter.cpp Wed Jul 11 11:45:22 2007
@@ -125,6 +125,7 @@
 void StmtPrinter::VisitCompoundStmt(CompoundStmt *Node) {
   Indent();
   PrintRawCompoundStmt(Node);
+  OS << "\n";
 }
 
 void StmtPrinter::VisitCaseStmt(CaseStmt *Node) {





More information about the cfe-commits mailing list