forked from OSchip/llvm-project
Revert "Change InitListExpr dump to label and pointer"
This reverts commit r348794. llvm-svn: 348799
This commit is contained in:
parent
1be0bea084
commit
677e3aec9e
|
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue