diff options
| author | Stephen Kelly <steveire@gmail.com> | 2018-12-09 13:15:18 +0000 |
|---|---|---|
| committer | Stephen Kelly <steveire@gmail.com> | 2018-12-09 13:15:18 +0000 |
| commit | 7ec37b2b2987cde2e11dde2692ba2ad76e4dca06 (patch) | |
| tree | 8e50e29b1afc0c2f477c001962629424f83efa6e /clang/lib | |
| parent | 2ac0c371d0d9d26d7ceb2f4fa0d70b9bd402ff70 (diff) | |
| download | bcm5719-llvm-7ec37b2b2987cde2e11dde2692ba2ad76e4dca06.tar.gz bcm5719-llvm-7ec37b2b2987cde2e11dde2692ba2ad76e4dca06.zip | |
Re-order content from InitListExpr
Summary:
This causes no change in the output of ast-dump-stmt.cpp due to the way
child nodes are printed with a delay.
Reviewers: aaron.ballman
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D55398
llvm-svn: 348714
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/ASTDumper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/AST/ASTDumper.cpp b/clang/lib/AST/ASTDumper.cpp index bdbc562df77..1ac604b1797 100644 --- a/clang/lib/AST/ASTDumper.cpp +++ b/clang/lib/AST/ASTDumper.cpp @@ -1979,16 +1979,16 @@ void ASTDumper::VisitStringLiteral(const StringLiteral *Str) { } void ASTDumper::VisitInitListExpr(const InitListExpr *ILE) { + if (auto *Field = ILE->getInitializedFieldInUnion()) { + OS << " field "; + NodeDumper.dumpBareDeclRef(Field); + } if (auto *Filler = ILE->getArrayFiller()) { dumpChild([=] { OS << "array filler"; dumpStmt(Filler); }); } - if (auto *Field = ILE->getInitializedFieldInUnion()) { - OS << " field "; - NodeDumper.dumpBareDeclRef(Field); - } } void ASTDumper::VisitUnaryOperator(const UnaryOperator *Node) { |

