[clang] [Sema] Fix false positive warnings for misaligned member access (PR #150025)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 6 06:22:28 PDT 2025


================
@@ -6765,6 +6762,10 @@ class Sema final : public SemaBase {
     /// InLifetimeExtendingContext is true.
     SmallVector<MaterializeTemporaryExpr *, 8> ForRangeLifetimeExtendTemps;
 
+    /// Small set of gathered accesses to potentially misaligned members
+    /// due to the packed attribute.
+    SmallVector<MisalignedMember, 4> MisalignedMembers;
----------------
erichkeane wrote:

It isn't clear here, can you let me know why this was reorderd?

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


More information about the cfe-commits mailing list