Skip to content

Commit 9ad2b0d

Browse files
committed
[libspirv] Fix atomic_xchg declarations.
This fixes build errors seen after #18613 in NativeCPU and AMD.
1 parent c8986cd commit 9ad2b0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libclc/libspirv/include/libspirv/atomic/atomic_xchg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#define __SPIRV_FUNCTION __spirv_AtomicExchange
910
#define __SPIRV_FUNCTION_S __spirv_AtomicExchange
1011
#define __SPIRV_FUNCTION_U __spirv_AtomicExchange
1112
#define __SPIRV_INT64_BASE

0 commit comments

Comments
 (0)