[clang] [Clang][Windows] Preserve natural alignment for vector and x86_fp80 arrays under #pragma pack. (PR #208256)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 19 20:08:55 PDT 2026


efriedma-quic wrote:

> You should not need to have vector or float80 specific hacks, those types should simply report the correct alignment. If they report the correct alignment requirements the rest of the behaviour should fall out. If it does not then either something else is wrong in codegen or the presumption in the test case is wrong.

You mean AlignRequirement in ASTContext::getTypeInfoImpl?  That seems right.  Earlier versions of the patch were doing that, I think?

https://github.com/llvm/llvm-project/pull/208256


More information about the cfe-commits mailing list