On AIX an aligned attribute cannot decrease the alignment of a variable when placed on a variable declaration of vector type.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
- Fixed spelling mistake
- Check that VD is non-nulll earlier.
- added warning that the requested alignment is too small.
- renamed test
clang/lib/Sema/SemaDeclAttr.cpp | ||
---|---|---|
4081 | Thanks for the feedback Aaron. I think an error is too drastic a difference from the other compilers on AIX so I added the warning. |
Comment Actions
LGTM aside from a minor nit.
clang/include/clang/Basic/DiagnosticSemaKinds.td | ||
---|---|---|
2989–2990 |