[PATCH] Slightly better handling of transparent_union attribute

Aaron Ballman aaron at aaronballman.com
Mon Jan 27 17:46:02 PST 2014


This patch addresses PR15134; we were being too strict with our
checking of alignments for transparent union members. This patch
relaxes the alignment checking rules by only enforcing the diagnostic
when subsequent alignments are more strict than the original
alignment.

I've also added a FIXME to the code to describe at least one of the
ways we're not handling the attribute semantics quite right.

~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TransparentUnion.patch
Type: application/octet-stream
Size: 2204 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140127/5e9e5975/attachment.obj>


More information about the cfe-commits mailing list