{"push_id":1203272137,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"750384742792bc3ab0f6a702e50ee487c27064f2","before":"65d083930eeb7201bb7d28357c3a24011eeebc70","commits":[{"sha":"750384742792bc3ab0f6a702e50ee487c27064f2","author":{"name":"Roger Ferrer Ibanez","email":"42f97b4d2d6a3966bd80ae4d9bc2f9dedd63f55d@arm.com"},"message":"Diagnose taking address and reference binding of packed members\n\nThis patch implements PR#22821.\n\nTaking the address of a packed member is dangerous since the reduced\nalignment of the pointee is lost. This can lead to memory alignment\nfaults in some architectures if the pointer value is dereferenced.\n\nThis change adds a new warning to clang emitted when taking the address\nof a packed member. A packed member is either a field/data member\ndeclared as attribute((packed)) or belonging to a struct/class\ndeclared as such. The associated flag is -Waddress-of-packed-member.\nConversions (either implicit or via a valid casting) to pointer types\nwith lower or equal alignment requirements (e.g. void* or char*)\nsilence the warning.\n\nThis change also adds a new error diagnostic when the user attempts to\nbind a reference to a packed member, regardless of the alignment.\n\nDifferential Revision: https://reviews.llvm.org/D20561","distinct":true,"url":"https://api.github.com/repos/llvm-project/llvm-project/commits/750384742792bc3ab0f6a702e50ee487c27064f2"}]}
{"actor":{"display_login":"chapuni"}}