When building LLVM with Open XL and -Werror is specified, the -Waix-compat warning becomes an error. This patch updates the SmallVector class to suppress the -Waix-compat warning/error on AIX.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Not sure the compilers in question accept this attribute form.
Since this structure is only used for checking the following static asserts, so binary compat probably isn't a real concern. So maybe it's better to suppress the warning is better this case.
Comment Actions
LGTM, with minor nit
llvm/lib/Support/SmallVector.cpp | ||
---|---|---|
22 | nit: maybe a comment would be warranted, since this what the intention of this is won't be very obvious to anyone who doesn't work on AIX |
nit: maybe a comment would be warranted, since this what the intention of this is won't be very obvious to anyone who doesn't work on AIX