[cfe-commits] r152478 - /cfe/trunk/lib/AST/StmtDumper.cpp

John McCall rjmccall at apple.com
Fri Mar 9 19:04:55 PST 2012


Author: rjmccall
Date: Fri Mar  9 21:04:55 2012
New Revision: 152478

URL: http://llvm.org/viewvc/llvm-project?rev=152478&view=rev
Log:
Fix the dumping of BlockExprs.

Modified:
    cfe/trunk/lib/AST/StmtDumper.cpp

Modified: cfe/trunk/lib/AST/StmtDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/StmtDumper.cpp?rev=152478&r1=152477&r2=152478&view=diff
==============================================================================
--- cfe/trunk/lib/AST/StmtDumper.cpp (original)
+++ cfe/trunk/lib/AST/StmtDumper.cpp Fri Mar  9 21:04:55 2012
@@ -507,8 +507,10 @@
 void StmtDumper::VisitBlockExpr(BlockExpr *Node) {
   DumpExpr(Node);
 
-  IndentLevel++;
   BlockDecl *block = Node->getBlockDecl();
+  OS << " decl=" << block;
+
+  IndentLevel++;
   if (block->capturesCXXThis()) {
     OS << '\n'; Indent(); OS << "(capture this)";
   }
@@ -526,6 +528,7 @@
   }
   IndentLevel--;
 
+  OS << '\n';
   DumpSubTree(block->getBody());
 }
 





More information about the cfe-commits mailing list