commit | 5e8577ece79b5ed07b0ab4dcb284a26076efdf65 | [log] [tgz] |
---|---|---|
author | Lang Hames <lhames@gmail.com> | Wed Feb 27 04:14:49 2013 +0000 |
committer | Lang Hames <lhames@gmail.com> | Wed Feb 27 04:14:49 2013 +0000 |
tree | 74f02c2ba549e348075d047cf4c2b237f6179015 | |
parent | f127eb8aeb3ce861f3dbc1adbb3362bfd98461e1 [diff] |
Use the correct alignment for POD-member memcpys where the first field is a bitfield. CGBitField::StorageAlignment holds the alignment in chars, but emitMemcpy had been treating it as if it were held in bits, leading to underaligned memcpys. Related to PR15348. Thanks very much to Chandler for the diagnosis. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176163 91177308-0d34-0410-b5e6-96231b3b80d8