[PATCH] D23657: Remove some false positives when taking the address of packed members
Roger Ferrer Ibanez via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 18 05:45:18 PDT 2016
rogfer01 created this revision.
rogfer01 added reviewers: aaron.ballman, rsmith.
rogfer01 added a subscriber: cfe-commits.
This change remove some false positives when taking the address of packed members.
- It silences the warning when a cast to uintptr_t/intptr_t happens.
- If the field is in a packed record that is overaligned, the field may still be in a suitable offset for the required alignment of the field. We now check this as well.
https://reviews.llvm.org/D23657
Files:
lib/Sema/SemaChecking.cpp
test/Sema/address-packed.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23657.68517.patch
Type: text/x-patch
Size: 5988 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160818/cc5c0af1/attachment-0001.bin>
More information about the cfe-commits
mailing list