[PATCH] D20561: Warn when taking address of packed member
Roger Ferrer Ibanez via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 16 02:09:14 PDT 2016
rogfer01 updated the summary for this revision.
rogfer01 updated this revision to Diff 60951.
rogfer01 added a comment.
Thanks @rsmith for the suggestions. I removed the whitelisting totally and changed the strategy. This patch implements your second suggestion which seemed more obvious to me. Since I expect the set of gathered misaligned member designations be small, I am using a plain SmallVector but maybe there is a more suitable structure.
I am now building Firefox and will post an update with the results.
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.60951.patch
Type: text/x-patch
Size: 17550 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160616/2d3b8698/attachment-0001.bin>
More information about the cfe-commits
mailing list