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

Zahira Ammarguellat via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 23 07:06:29 PDT 2026


================
@@ -2059,7 +2059,11 @@ bool ASTContext::isPromotableIntegerType(QualType T) const {
 }
 
 bool ASTContext::isAlignmentRequired(const Type *T) const {
-  return getTypeInfo(T).AlignRequirement != AlignRequirementKind::None;
+  AlignRequirementKind Kind = getTypeInfo(T).AlignRequirement;
----------------
zahiraam wrote:

Done.

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


More information about the cfe-commits mailing list