https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/181800
>From ba1a61a6ae4fe04116651d4fc6b0836211d6a4fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= <[email protected]> Date: Tue, 17 Feb 2026 12:05:34 +0100 Subject: [PATCH] [clang][test] Try to fix Sema/format-strings.c on i686 https://github.com/llvm/llvm-project/pull/180566 did this for 32bit arm, but this still breaks for us downstream on i686 with: ``` ``` --- clang/test/Sema/format-strings.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clang/test/Sema/format-strings.c b/clang/test/Sema/format-strings.c index 07bac7095ee82..bdb4466dc6ae8 100644 --- a/clang/test/Sema/format-strings.c +++ b/clang/test/Sema/format-strings.c @@ -986,12 +986,9 @@ void test_promotion(void) { void test_bool(_Bool b, _Bool* bp) { -#ifndef __arm__ +#if __SIZEOF_INT__ != __SIZEOF_SIZE_T__ printf("%zu", b); // expected-warning-re{{format specifies type 'size_t' (aka '{{.+}}') but the argument has type '_Bool'}} printf("%td", b); // expected-warning-re{{format specifies type 'ptrdiff_t' (aka '{{.+}}') but the argument has type '_Bool'}} -#else - printf("%zu", b); // no-warning - printf("%td", b); // no-warning #endif printf("%jd", b); // expected-warning-re{{format specifies type 'intmax_t' (aka '{{.+}}') but the argument has type '_Bool'}} printf("%lld", b); // expected-warning{{format specifies type 'long long' but the argument has type '_Bool'}} _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
