[PATCH] D158557: [clang] Fix crash in __builtin_strncmp and other related builtin functions
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 24 12:22:05 PDT 2023
aaron.ballman added inline comments.
================
Comment at: clang/test/SemaCXX/constexpr-string.cpp:681
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wconstant-conversion"
+namespace GH64876 {
----------------
shafik wrote:
> erichkeane wrote:
> > rather than suppress these, it makes sense to me to just mark them expected-warning.
> It depends on the size of `size_t` whether I get this diagnostic or not.
Given that the point to this test isn't to test constant conversion behavior but is testing boundary cases where you'll get those diagnostics, I think suppressing the warnings is fine.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158557/new/
https://reviews.llvm.org/D158557
More information about the cfe-commits
mailing list