summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
diff options
context:
space:
mode:
authorHans Wennborg <hans@chromium.org>2020-02-20 15:41:26 +0100
committerHans Wennborg <hans@chromium.org>2020-02-20 15:41:26 +0100
commitd75ce45777d9802d43b555993fde8ed6562fb368 (patch)
treeccfc22e440e3df4c7e3b77aa2fb03097800ff0e1 /llvm/cmake/modules
parent7a18790ae2f4b92dc26b2be963e588c8837d0076 (diff)
downloadbcm5719-llvm-d75ce45777d9802d43b555993fde8ed6562fb368.tar.gz
bcm5719-llvm-d75ce45777d9802d43b555993fde8ed6562fb368.zip
Revert "[CMake] CheckAtomic.cmake: catch false positives in RISC-V"
This reverts commit a572a8a147c76b9d31585c2d4257a5db566c9a9d. Apparently it was part of a larger series, and I'm not planning on merging that; see https://reviews.llvm.org/D68964
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/CheckAtomic.cmake6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/cmake/modules/CheckAtomic.cmake b/llvm/cmake/modules/CheckAtomic.cmake
index 34ab8e98de4..29f3bdd57f0 100644
--- a/llvm/cmake/modules/CheckAtomic.cmake
+++ b/llvm/cmake/modules/CheckAtomic.cmake
@@ -12,12 +12,8 @@ function(check_working_cxx_atomics varname)
CHECK_CXX_SOURCE_COMPILES("
#include <atomic>
std::atomic<int> x;
-std::atomic<short> y;
-std::atomic<char> z;
int main() {
- ++z;
- ++y;
- return ++x;
+ return x;
}
" ${varname})
set(CMAKE_REQUIRED_FLAGS ${OLD_CMAKE_REQUIRED_FLAGS})
OpenPOWER on IntegriCloud