diff options
| author | Warren Hunt <whunt@google.com> | 2014-01-09 23:51:31 +0000 |
|---|---|---|
| committer | Warren Hunt <whunt@google.com> | 2014-01-09 23:51:31 +0000 |
| commit | 4df754d1530e70e5719cfd00b515cbfa8dbbe59f (patch) | |
| tree | 44c8218c69f1fb248dabf7b4ffe4b45a2efc01bf /lib/CodeGen/CGExprAgg.cpp | |
| parent | 27db771559cc2edd915b098a739d00b2a0bff13c (diff) | |
| download | clang-4df754d1530e70e5719cfd00b515cbfa8dbbe59f.tar.gz clang-4df754d1530e70e5719cfd00b515cbfa8dbbe59f.tar.bz2 clang-4df754d1530e70e5719cfd00b515cbfa8dbbe59f.tar.xz | |
[ms-abi] Fixing CGRecordLayoutBuilder w.r.t. MS NonVirutalBase Layout
The MS abi lays out *all* non-virtual bases with leading vfptrs before
laying out non-virutal bases without vfptrs. This guarantees that the
primary base is laid out first. r198818 fixed RecordLayoutBuilder to
produce compatiable layouts. This patch fixes CGRecordLayoutBuilder to
be able to consume those layouts and produce meaningful output without
tripping any asserts about assumed incoming layout.
A test case is included that shows CGRecordLayoutBuilder in fact
produces output in the compatiable order.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198900 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
0 files changed, 0 insertions, 0 deletions
