[libc-commits] [libc] [libc] Fix compilation error on targets without 128-bit int types (PR #97039)

via libc-commits libc-commits at lists.llvm.org
Fri Jun 28 04:38:11 PDT 2024


================
@@ -102,7 +102,7 @@ TYPED_TEST(LlvmLibcBitTest, CountZeros, UnsignedTypesNoBigInt) {
 }
 
 using UnsignedTypes = testing::TypeList<
-#if defined(__SIZEOF_INT128__)
+#if defined(LIBC_TYPES_HAS_INT128)
     __uint128_t,
----------------
overmighty wrote:

I caught this as I tried to reproduce what was happening on the failed Buildbot builds by just not defining `LIBC_TYPES_HAS_INT128`. It won't cause a compilation error on real builds where 128-bit int types are either really available or they're not. This is basically a cleanup.

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


More information about the libc-commits mailing list