[clang] [Sema] Fix false positive warnings for misaligned member access (PR #150025)
Vladimir Vuksanovic via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 6 08:27:21 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;
----------------
vvuksanovic wrote:
For some reason github doesn't show it, but it is moved inside the `ExpressionEvaluationContextRecord` class so we have one list per evaluation context.
https://github.com/llvm/llvm-project/pull/150025
More information about the cfe-commits
mailing list