Revert "Change InitListExpr dump to label and pointer"

This reverts commit r348794.

llvm-svn: 348799
This commit is contained in:
Stephen Kelly 2018-12-10 21:20:05 +00:00
parent 1be0bea084
commit 677e3aec9e
2 changed files with 7 additions and 7 deletions

View File

@ -1963,12 +1963,11 @@ void ASTDumper::VisitInitListExpr(const InitListExpr *ILE) {
OS << " field ";
NodeDumper.dumpBareDeclRef(Field);
}
if (auto *Filler = ILE->getArrayFiller()) {
OS << " array_filler";
NodeDumper.dumpPointer(Filler);
dumpChild([=] {
OS << "array filler";
dumpStmt(Filler);
});
}
}

View File

@ -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
}