HomePhabricator

[MS] Fix packed struct layout for arrays of aligned non-record types

Authored by rnk on Apr 8 2020, 2:05 PM.

Description

[MS] Fix packed struct layout for arrays of aligned non-record types

In particular, this affects Clang's vectors. Users encounter this issue
when a struct contains an __m128 type.

Fixes PR45420

Reviewed By: rjmccall

Differential Revision: https://reviews.llvm.org/D77754

Details