[PATCH] D20561: Warn when taking address of packed member

Roger Ferrer Ibanez via cfe-commits cfe-commits at lists.llvm.org
Fri May 27 02:14:14 PDT 2016


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

Only warn if the expression is of the form &a.x this way &(a.x) can be used to silence the warning.


http://reviews.llvm.org/D20561

Files:
  include/clang/Basic/DiagnosticSemaKinds.td
  lib/Sema/SemaExpr.cpp
  test/Sema/address-packed.c
  test/SemaCXX/address-packed.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20561.58760.patch
Type: text/x-patch
Size: 9467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160527/6c3a4322/attachment-0001.bin>


More information about the cfe-commits mailing list