2 Commits

Author SHA1 Message Date
Sirraide
e4882d83d7
[Clang] [Sema] Do not crash on dependent or invalid record decls when -fdump-record-layouts-complete is passed (#83688)
We no longer try to compute and dump the layout of types in cases where that isn’t possible.

This fixes #83684 and #83671.
2024-03-04 14:04:35 +01:00
David Tenty
7942ebdf01 [clang] Add cc1 option for dumping layout for all complete types
This change adds an option which, in addition to dumping the record
layout as is done by -fdump-record-layouts, causes us to compute the
layout for all complete record types (rather than the as-needed basis
which is usually done by clang), so that we will dump them as well.
This is useful if we are looking for layout differences across large
code bases without needing to instantiate every type we are interested in.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D104484
2021-06-22 16:27:26 -04:00