[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
Fri Oct 14 02:55:15 PDT 2016


rogfer01 updated this revision to Diff 74638.
rogfer01 added a comment.

Updated patch, now we check if the innermost base of a MemberExpr is a DeclRefExpr and check for its declaration in case it provides stronger alignment guarantees.


https://reviews.llvm.org/D23657

Files:
  include/clang/Sema/Sema.h
  lib/Sema/SemaChecking.cpp
  test/Sema/address-packed.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23657.74638.patch
Type: text/x-patch
Size: 10929 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161014/c4373874/attachment-0001.bin>


More information about the cfe-commits mailing list