Skip to content

Commit ca0e241

Browse files
committed
[openmp] Silence warning when compiling with MSVC targetting x86
This fixes: ``` [3593/7449] Building CXX object projects\openmp\runtime\src\CMakeFiles\omp.dir\kmp_debug.cpp.obj C:\git\llvm-project\openmp\runtime\src\kmp_os.h(471): warning C4163: '_InlineInterlockedExchange64': not available as an intrinsic function ```
1 parent 43ab40a commit ca0e241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openmp/runtime/src/kmp_os.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ enum kmp_mem_fence_type {
467467
#pragma intrinsic(InterlockedExchangeAdd)
468468
#pragma intrinsic(InterlockedCompareExchange)
469469
#pragma intrinsic(InterlockedExchange)
470-
#if !(KMP_COMPILER_ICX && KMP_32_BIT_ARCH)
470+
#if !KMP_32_BIT_ARCH
471471
#pragma intrinsic(InterlockedExchange64)
472472
#endif
473473
#endif

0 commit comments

Comments
 (0)