Skip to content
Commit 1694e0d2 authored by Lang Hames's avatar Lang Hames
Browse files

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.

llvm-svn: 176163
parent 2ce6b43f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment