diff options
| author | Reid Kleckner <rnk@google.com> | 2016-02-26 18:08:59 +0000 | 
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2016-02-26 18:08:59 +0000 | 
| commit | 1762ad3e7332f9dc3db942851df3249fb539eed9 (patch) | |
| tree | 785647966554c270999552ff07fac83cdd3cf583 /llvm/lib/Bitcode/Writer/BitWriter.cpp | |
| parent | 334685b486ad15bf5de3098df77372edc9ce2502 (diff) | |
| download | bcm5719-llvm-1762ad3e7332f9dc3db942851df3249fb539eed9.tar.gz bcm5719-llvm-1762ad3e7332f9dc3db942851df3249fb539eed9.zip | |
[IR] Optimize bitfield layout of Value for MSVC
This should save a pointer of padding from all MSVC Value subclasses.
Recall that MSVC will not pack the following bitfields together:
  unsigned Bits : 29;
  unsigned Flag1 : 1;
  unsigned Flag2 : 1;
  unsigned Flag3 : 1;
Add a static_assert because LLVM developers always trip over this
behavior. This regressed in June.
llvm-svn: 262045
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitWriter.cpp')
0 files changed, 0 insertions, 0 deletions

