[clang] [clang][test] Try to fix Sema/format-strings.c on i686 (PR #181800)

Leandro Lupori via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 18 05:10:06 PST 2026


================
@@ -986,7 +986,7 @@ void test_promotion(void) {
 
 void test_bool(_Bool b, _Bool* bp)
 {
-#ifndef __arm__
+#if defined(__LP64__) || defined(_WIN32)
----------------
luporl wrote:

This works for ARMv7 and AArch64, but I'm not sure about AIX.

Although I don't have AIX hardware to test this PR, I had a previous fix that failed on AIX because it has 64-bit integers and longs, so it seems to be ILP64 instead of LP64, and the warnings are displayed on it.

https://github.com/llvm/llvm-project/pull/181800


More information about the cfe-commits mailing list