Commit a8b0c6fa authored by David Blaikie's avatar David Blaikie
Browse files

Remove -Wpacked false positive for non-pod types where the layout isn't directly changed

The packed attribute can still be useful in this case if the struct is
then placed inside another packed struct - the non-pod element type's
packed attribute declares that it's OK to misalign this element inside
the packed structure. (otherwise the non-pod element is not packed/its
alignment is preserved, as per D117616/27712337)

Fixes PR62353

Differential Revision: https://reviews.llvm.org/D149182
parent 971d982b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment