Author: John Paul Jepko Date: 2026-06-23T06:27:35-07:00 New Revision: ab1ef459069d1dbf4ee9e5a802537ababe294b25
URL: https://github.com/llvm/llvm-project/commit/ab1ef459069d1dbf4ee9e5a802537ababe294b25 DIFF: https://github.com/llvm/llvm-project/commit/ab1ef459069d1dbf4ee9e5a802537ababe294b25.diff LOG: [Clang][Test] Fix warn-memset-bad-sizeof.cpp after #183004 (#205201) The new `-Wstringop-overread` warning (added in #183004) fires on the SemaCXX test warn-memset-bad-sizeof.cpp. This happens on targets where unsigned matches size_t, such as 32-bit ARM, because clang will match the declaration with the builtin prototype (specifically, argument `unsigned n`). Suppress the warning since this test is exercising `-Wsizeof-pointer-memaccess`, not source buffer overreads. Fixes: - https://lab.llvm.org/buildbot/#/builders/154/builds/32985 - https://lab.llvm.org/buildbot/#/builders/135/builds/3888 - https://lab.llvm.org/buildbot/#/builders/38/builds/9363 Added: Modified: clang/test/SemaCXX/warn-memset-bad-sizeof.cpp Removed: ################################################################################ diff --git a/clang/test/SemaCXX/warn-memset-bad-sizeof.cpp b/clang/test/SemaCXX/warn-memset-bad-sizeof.cpp index 6f1cd4dd639ec..405652e3daf5e 100644 --- a/clang/test/SemaCXX/warn-memset-bad-sizeof.cpp +++ b/clang/test/SemaCXX/warn-memset-bad-sizeof.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -fsyntax-only -verify -Wno-sizeof-array-argument %s +// RUN: %clang_cc1 -fsyntax-only -verify -Wno-sizeof-array-argument -Wno-stringop-overread %s // extern "C" void *bzero(void *, unsigned); extern "C" void *memset(void *, int, unsigned); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
