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

It looks like the Clang preprocessor defines convenient SIZEOF macros, so we 
can write this as `#if __SIZEOF_INT__ != __SIZEOF_SIZE_T__`. I think that 
should be robust.

I checked that this works for all of `-triple=powerpc64-ibm-aix-xcoff`, 
`-triple=i686-unknown-linux-gnu`, `-triple=x86_64-pc-windows-msvc` and 
`-triple=i686-pc-windows-msvc`.

The current check in this PR fails on `-triple=i686-pc-windows-msvc`.

https://github.com/llvm/llvm-project/pull/181800
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to