In particular, this affects Clang's vectors. Users encounter this issue
when a struct contains an __m128 type.
Fixes PR45420
Paths
| Differential D77754
[MS] Fix packed struct layout for arrays of aligned non-record types ClosedPublic Authored by rnk on Apr 8 2020, 2:09 PM.
Details Summary In particular, this affects Clang's vectors. Users encounter this issue Fixes PR45420
Diff Detail
Unit TestsFailed
Event TimelineComment Actions Okay, so this is basically just saying that the required-alignment-defeats-packed rule looks through arrays? Make sense. LGTM. This revision is now accepted and ready to land.Apr 10 2020, 10:52 PM Closed by commit rG8da5b9083691: [MS] Fix packed struct layout for arrays of aligned non-record types (authored by rnk). · Explain WhyApr 14 2020, 7:03 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 256110 clang/lib/AST/ASTContext.cpp
clang/test/Layout/ms-aligned-array.c
|
clang-format: please reformat the code