[PATCH] D73996: [Sema] Demote call-site-based 'alignment is a power of two' check for AllocAlignAttr into a warning
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 19 12:33:05 PST 2020
erichkeane accepted this revision.
erichkeane added a comment.
This revision is now accepted and ready to land.
1 nit, otherwise LGTM.
================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:2996
+def warn_alignment_not_power_of_two : Warning<
+ "requested alignment is not a power of 2">,
+ InGroup<DiagGroup<"non-power-of-two-alignment">>;
----------------
Can you use the above one (err_alignment_not_power_of_two .Text) so that they are forced to have the same message?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73996/new/
https://reviews.llvm.org/D73996
More information about the cfe-commits
mailing list