From: John McCall Date: Sat, 10 Mar 2012 03:04:55 +0000 (+0000) Subject: Fix the dumping of BlockExprs. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89da8cf16b671845660711d3dd4174a809ca6cca;p=clang Fix the dumping of BlockExprs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152478 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/StmtDumper.cpp b/lib/AST/StmtDumper.cpp index 5120c8c352..acacf943fd 100644 --- a/lib/AST/StmtDumper.cpp +++ b/lib/AST/StmtDumper.cpp @@ -507,8 +507,10 @@ void StmtDumper::VisitCompoundAssignOperator(CompoundAssignOperator *Node) { 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 @@ void StmtDumper::VisitBlockExpr(BlockExpr *Node) { } IndentLevel--; + OS << '\n'; DumpSubTree(block->getBody()); }