mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Zero sized fields are messing up the offset calculations when we import C++ fields to Swift. We assume that the size of the field is determined by the type of the field. This is not true for fields marked with no_unique_address. Those fields can have 0 size while the sizeof(decltype(field)) is still 1. rdar://143907490
597 B
597 B