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

Zarko Todorovski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 31 10:26:37 PST 2022


ZarkoCA added a comment.

In D118350#3282855 <https://reviews.llvm.org/D118350#3282855>, @nemanjai wrote:

> Would it make sense (and would it be possible) to check the linkage of the callee? Presumably calling something like
> `static void localfunc(int *)`
> with an over-aligned member shouldn't be a problem.

That's a really good point. It wouldn't make sense for it to apply there, thanks!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118350



More information about the cfe-commits mailing list