Fields are imported first and reordered for correct layout.
For partially imported record, layout computation is incorrect.
Paths
| Differential D154764
[ASTImporter] Fields are imported first and reordered for correct layout. ClosedPublic Authored by danix800 on Jul 8 2023, 4:26 AM.
Details Summary Fields are imported first and reordered for correct layout. For partially imported record, layout computation is incorrect.
Diff Detail
Event Timelinedanix800 retitled this revision from [clang] ASTImport: force recomputing ASTRecordLayout when importing to [clang] [ASTImporter]: force recomputing ASTRecordLayout when importing.Jul 10 2023, 8:09 AM danix800 retitled this revision from [clang] [ASTImporter]: force recomputing ASTRecordLayout when importing to [ASTImporter] Fields are imported first and reordered for correct layout.. Comment ActionsFields are imported first and reordered for correct layout. Comment Actions If I see correctly this change does that the re-ordered members are imported before all other, specially fields come before functions. This way order of fields is already correct when a function is imported.
Comment Actions
That's correct. This revision is now accepted and ready to land.Jul 17 2023, 8:02 AM Closed by commit rGe9536698720e: [ASTImporter] Fields are imported first and reordered for correct layout (authored by dingfei <fding@feysh.com>). · Explain WhyJul 18 2023, 2:08 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 541037 clang/lib/AST/ASTImporter.cppclang/unittests/AST/ASTImporterTest.cpp
|
Braces are not required here (and at the other similar places).