[ASTImporter] At import of records re-order indirect fields too.
authorBalazs Keri <1.int32@gmail.com>
Mon, 2 Sep 2019 07:17:01 +0000 (07:17 +0000)
committerBalazs Keri <1.int32@gmail.com>
Mon, 2 Sep 2019 07:17:01 +0000 (07:17 +0000)
commit6e0866987949be9d1300a82c957bb5c1cef79d58
tree8c8c07d0a7244d9e30eec320df179dbc1118f7aa
parent3ab210862a030196799918b2ea53d176bc714b7f
[ASTImporter] At import of records re-order indirect fields too.

Summary:
Correct order of fields and indirect fields in imported RecordDecl
is needed for correct work of record layout calculations.

Reviewers: martong, a.sidorin, shafik, a_sidorin

Reviewed By: martong, a_sidorin

Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D66866

llvm-svn: 370621
clang/lib/AST/ASTImporter.cpp
clang/unittests/AST/ASTImporterTest.cpp