[PATCH] D73996: [Sema] Demote call-site-based 'alignment is a power of two' check for AllocAlignAttr into a warning

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 5 08:06:24 PST 2020


lebedev.ri updated this revision to Diff 242622.
lebedev.ri retitled this revision from "[Sema] Demote 'alignment is not a power of two' error into a warning" to "[Sema] Demote call-site-based 'alignment is a power of two' check for AllocAlignAttr into a warning".
lebedev.ri added a comment.

Scale ambitions down - only demote the call-site-based `AllocAlignAttr` error.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D73996

Files:
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/Sema/SemaChecking.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/CodeGen/non-power-of-2-alignment-assumptions.c
  clang/test/Sema/alloc-align-attr.c
  clang/test/SemaCXX/alloc-align-attr.cpp
  clang/test/SemaCXX/std-align-val-t-in-operator-new.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73996.242622.patch
Type: text/x-patch
Size: 7909 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200205/9889eacf/attachment-0001.bin>


More information about the cfe-commits mailing list