Author: steveire Date: Mon Dec 10 13:20:05 2018 New Revision: 348799 URL: http://llvm.org/viewvc/llvm-project?rev=348799&view=rev Log: Revert "Change InitListExpr dump to label and pointer"
This reverts commit r348794. Modified: cfe/trunk/lib/AST/ASTDumper.cpp cfe/trunk/test/AST/ast-dump-stmt.cpp Modified: cfe/trunk/lib/AST/ASTDumper.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTDumper.cpp?rev=348799&r1=348798&r2=348799&view=diff ============================================================================== --- cfe/trunk/lib/AST/ASTDumper.cpp (original) +++ cfe/trunk/lib/AST/ASTDumper.cpp Mon Dec 10 13:20:05 2018 @@ -1963,12 +1963,11 @@ void ASTDumper::VisitInitListExpr(const OS << " field "; NodeDumper.dumpBareDeclRef(Field); } - if (auto *Filler = ILE->getArrayFiller()) { - OS << " array_filler"; - NodeDumper.dumpPointer(Filler); - - dumpStmt(Filler); + dumpChild([=] { + OS << "array filler"; + dumpStmt(Filler); + }); } } Modified: cfe/trunk/test/AST/ast-dump-stmt.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-stmt.cpp?rev=348799&r1=348798&r2=348799&view=diff ============================================================================== --- cfe/trunk/test/AST/ast-dump-stmt.cpp (original) +++ cfe/trunk/test/AST/ast-dump-stmt.cpp Mon Dec 10 13:20:05 2018 @@ -90,8 +90,9 @@ void TestUnionInitList() { U us[3] = {1}; // CHECK: VarDecl {{.+}} <col:3, col:15> col:5 us 'U [3]' cinit -// CHECK-NEXT: `-InitListExpr {{.+}} <col:13, col:15> 'U [3]' array_filler 0x{{.+}} -// CHECK-NEXT: |-InitListExpr {{.+}} <col:15> 'U' field Field {{.+}} 'i' 'int' +// CHECK-NEXT: `-InitListExpr {{.+}} <col:13, col:15> 'U [3]' +// CHECK-NEXT: |-array filler +// CHECK-NEXT: | `-InitListExpr {{.+}} <col:15> 'U' field Field {{.+}} 'i' 'int' // CHECK-NEXT: `-InitListExpr {{.+}} <col:14> 'U' field Field {{.+}} 'i' 'int' // CHECK-NEXT: `-IntegerLiteral {{.+}} <col:14> 'int' 1 } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits