diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2013-06-26 20:50:34 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2013-06-26 20:50:34 +0000 |
| commit | cd06f26835033e879a9278941f4f6e6a4086976d (patch) | |
| tree | 859b44339ba212ef7ad86dcc65417c0b6fd1ceff /lib/CodeGen/CodeGenFunction.cpp | |
| parent | eb7c6f3c49b4b3c2b01aeeed54bf5915fbf9b021 (diff) | |
| download | clang-cd06f26835033e879a9278941f4f6e6a4086976d.tar.gz clang-cd06f26835033e879a9278941f4f6e6a4086976d.tar.bz2 clang-cd06f26835033e879a9278941f4f6e6a4086976d.tar.xz | |
Rewrite record layout for ms_struct structs.
The old implementation of ms_struct in RecordLayoutBuilder was a
complete mess: it depended on complicated conditionals which didn't
really reflect the underlying logic, and placed a burden on users of
the resulting RecordLayout. This commit rips out almost all of the
old code, and replaces it with simple checks in
RecordLayoutBuilder::LayoutBitField.
This commit also fixes <rdar://problem/14252115>, a bug where class
inheritance would cause us to lay out bitfields incorrectly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
