[PATCH] D20561: Warn when taking address of packed member
Joerg Sonnenberger via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 1 05:15:00 PST 2017
joerg added a comment.
It is not true that all false positives have been fixed, some of the more complex cases involving nested data structures are still open.
@royger: Your example is missing explicit alignment. packed has two side effects: remove internal padding and set the alignment to 1. That means that the offset of base doesn't matter so much because reg itself is not necessarily aligned.
Repository:
rL LLVM
https://reviews.llvm.org/D20561
More information about the cfe-commits
mailing list