[PATCH] D118350: [Clang][Sema][AIX][PowerPC] Emit byval alignment warning only when struct is passed to a function

Zarko Todorovski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 28 15:33:42 PST 2022


ZarkoCA updated this revision to Diff 411912.
ZarkoCA retitled this revision from "[Clang][Sema][AIX][PowerPC] Emit byval alignment warning only when struct member is passed to a function" to "[Clang][Sema][AIX][PowerPC] Emit byval alignment warning only when struct is passed to a function".
ZarkoCA edited the summary of this revision.
ZarkoCA added a comment.
This revision is now accepted and ready to land.

Reworked implementation so the diagnosis is more correct:

- Warn when the struct is passed that contains the member
- Warn when alignment is 16 and not 16 and greater


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118350/new/

https://reviews.llvm.org/D118350

Files:
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/include/clang/Sema/Sema.h
  clang/lib/Sema/SemaChecking.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/Analysis/padding_c.c
  clang/test/Analysis/padding_cpp.cpp
  clang/test/CXX/drs/dr6xx.cpp
  clang/test/Sema/aix-attr-align.c
  clang/test/SemaTemplate/instantiate-attr.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118350.411912.patch
Type: text/x-patch
Size: 10268 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220228/21e16c6a/attachment-0001.bin>


More information about the cfe-commits mailing list