[PATCH] D20561: Warn when taking address of packed member
Roger Ferrer Ibanez via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 1 01:07:50 PDT 2016
rogfer01 updated this revision to Diff 59178.
rogfer01 marked an inline comment as done.
rogfer01 added a comment.
Do not warn if the alignment of the type of the field is already 1 as packed does not have any effect on those fields.
http://reviews.llvm.org/D20561
Files:
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/Sema/address-packed.c
test/SemaCXX/address-packed.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20561.59178.patch
Type: text/x-patch
Size: 6687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160601/a1fa4e9d/attachment.bin>
More information about the cfe-commits
mailing list