Skip to content

Commit d75ce45

Browse files
committed
Revert "[CMake] CheckAtomic.cmake: catch false positives in RISC-V"
This reverts commit a572a8a. Apparently it was part of a larger series, and I'm not planning on merging that; see https://reviews.llvm.org/D68964
1 parent 7a18790 commit d75ce45

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/cmake/modules/CheckAtomic.cmake

+1-5
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ function(check_working_cxx_atomics varname)
1212
CHECK_CXX_SOURCE_COMPILES("
1313
#include <atomic>
1414
std::atomic<int> x;
15-
std::atomic<short> y;
16-
std::atomic<char> z;
1715
int main() {
18-
++z;
19-
++y;
20-
return ++x;
16+
return x;
2117
}
2218
" ${varname})
2319
set(CMAKE_REQUIRED_FLAGS ${OLD_CMAKE_REQUIRED_FLAGS})

0 commit comments

Comments
 (0)