[clang] [clang] allow fetch_{min, max} for atomic pointer types (PR #182699)

via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 22 04:08:27 PDT 2026


================
@@ -720,7 +720,7 @@ void test_underaligned(void) {
   __atomic_compare_exchange(&aligned_a, &aligned_b, &aligned_c, 1, memory_order_seq_cst, memory_order_seq_cst);
 }
 
-void test_c11_minmax(_Atomic(int) * si, _Atomic(unsigned) * ui, _Atomic(short) * ss, _Atomic(unsigned char) * uc, _Atomic(long long) * sll) {
+void test_c11_minmax(_Atomic(int) * si, _Atomic(unsigned) * ui, _Atomic(short) * ss, _Atomic(unsigned char) * uc, _Atomic(long long) * sll, _Atomic(int*) * aip, int* ip) {
----------------
huixie90 wrote:

hmm the other arguments are atomic integer but the new argument is for the "atomic pointer"

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


More information about the cfe-commits mailing list