llvm-project/clang/test/CodeGenCXX/Inputs
Aleksandr Urakov 867c2a7d36 [AST] Improve support of external layouts in `MicrosoftRecordLayoutBuilder`
Summary:
This patch fixes several small problems with external layouts support in
`MicrosoftRecordLayoutBuilder`:
- aligns properly the size of a struct that ends with a bit field. It was
  aligned on byte before, not on the size of the field, so the struct size was
  smaller than it should be;
- adjusts the struct size when injecting a vbptr in the case when there were no
  bases or fields allocated after the vbptr. Similarly, without the adjustment
  the struct was smaller than it should be;
- the same fix as above for the vfptr.
All these fixes affect the non-virtual size of a struct, so they are tested
through non-virtual inheritance.

Reviewers: rnk, zturner, rsmith

Reviewed By: rnk

Subscribers: jdoerfert, cfe-commits

Tags: #clang

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

llvm-svn: 356047
2019-03-13 13:38:12 +00:00
..
debug-info-class-limited.cpp
override-bit-field-layout.layout [AST] Improve support of external layouts in `MicrosoftRecordLayoutBuilder` 2019-03-13 13:38:12 +00:00
override-layout-nameless-struct-union.layout Improve support of PDB as an external layout source 2018-07-31 08:27:06 +00:00
override-layout-packed-base.layout [AST] Do not align virtual bases in `MicrosoftRecordLayoutBuilder` when 2018-10-23 08:23:22 +00:00
override-layout-virtual-base.layout [AST] Improve support of external layouts in `MicrosoftRecordLayoutBuilder` 2019-03-13 13:38:12 +00:00
profile-remap.map Add a flag to remap manglings when reading profile data information. 2018-10-10 23:13:35 +00:00
profile-remap.proftext Add a flag to remap manglings when reading profile data information. 2018-10-10 23:13:35 +00:00
profile-remap.samples Add a flag to remap manglings when reading profile data information. 2018-10-10 23:13:35 +00:00
std-compare.h