[clang] [X86][Clang] allow CRC32 intrinsics to be used in constexp (PR #173908)

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 20 05:11:40 PST 2026


================
@@ -138,3 +138,30 @@ unsigned long long test_mm_crc32_u64(unsigned long long CRC, unsigned long long
   return _mm_crc32_u64(CRC, V);
 }
 #endif
+
+#if defined(__cplusplus) && (__cplusplus >= 201103L)
----------------
RKSimon wrote:

no need for this as TEST_CONSTEXPR has its own guards.

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


More information about the cfe-commits mailing list