swift
998591e9 - [cxx-interop] Do not import zero-sized fields

Commit
219 days ago
[cxx-interop] Do not import zero-sized fields 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
Author
Gabor Horvath
Committer
Gabor Horvath
Parents
Loading