diff options
author | John McCall <rjmccall@apple.com> | 2012-03-10 03:04:55 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2012-03-10 03:04:55 +0000 |
commit | 89da8cf16b671845660711d3dd4174a809ca6cca (patch) | |
tree | 166f25fd824bc128b2d266ab4e5f8e292b812ef6 | |
parent | e6adea918fa884c9b381b84361289f843e1ecd11 (diff) |
Fix the dumping of BlockExprs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152478 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/AST/StmtDumper.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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()); } |