[PATCH] D20561: Warn when taking address of packed member
Roger Ferrer Ibanez via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 17 06:23:44 PDT 2016
rogfer01 updated this revision to Diff 61089.
rogfer01 added a comment.
Following @rsmith suggestion, the diagnostic is silenced if the address is converted to a pointer with lower or equal alignment requirements.
http://reviews.llvm.org/D20561
Files:
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/Sema/SemaCast.cpp
lib/Sema/SemaChecking.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaInit.cpp
test/Sema/address-packed-member-memops.c
test/Sema/address-packed.c
test/SemaCXX/address-packed-member-memops.cpp
test/SemaCXX/address-packed.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20561.61089.patch
Type: text/x-patch
Size: 18681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160617/bd0e3365/attachment-0001.bin>
More information about the cfe-commits
mailing list