rsmith added a comment.

In https://reviews.llvm.org/D34574#791157, @dexonsmith wrote:

> Likely, something like `-Werror=aligned-allocation-availability` (by default).


An error by default seems OK if accompanied with a "use -faligned-allocation if 
you supply your own aligned allocation functions" hint.

> I also wonder: should we add a warning for such code in pre-C++17?

`-Wover-aligned` catches this for pre-C++17. We should probably enable it by 
default, though :)


https://reviews.llvm.org/D34574



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to