summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/include/llvm/Support
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2016-03-24 20:55:23 +0000
committerdim <dim@FreeBSD.org>2016-03-24 20:55:23 +0000
commitdb175d7b4144b44f51ba3dfd898ba9eb674538d8 (patch)
tree324fe4db035424249ffdcdb848605c45fc5823c6 /contrib/llvm/include/llvm/Support
parent2e42421c8b5ecdc332153a2ee5e0b2b811fd9385 (diff)
downloadFreeBSD-src-db175d7b4144b44f51ba3dfd898ba9eb674538d8.zip
FreeBSD-src-db175d7b4144b44f51ba3dfd898ba9eb674538d8.tar.gz
Pull in r264335 from upstream llvm trunk:
Add <atomic> to ThreadPool.h, since std::atomic is used Summary: Apparently, when compiling with gcc 5.3.2 for powerpc64, the order of headers is such that it gets an error about std::atomic<> use in ThreadPool.h, since this header is not included explicitly. See also: https://llvm.org/bugs/show_bug.cgi?id=27058 Fix this by including <atomic>. Patch by Bryan Drewery. Reviewers: chandlerc, joker.eph Subscribers: bdrewery, llvm-commits Differential Revision: http://reviews.llvm.org/D18460
Diffstat (limited to 'contrib/llvm/include/llvm/Support')
-rw-r--r--contrib/llvm/include/llvm/Support/ThreadPool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/llvm/include/llvm/Support/ThreadPool.h b/contrib/llvm/include/llvm/Support/ThreadPool.h
index 745334d..665cec2 100644
--- a/contrib/llvm/include/llvm/Support/ThreadPool.h
+++ b/contrib/llvm/include/llvm/Support/ThreadPool.h
@@ -33,6 +33,7 @@
#pragma warning(pop)
#endif
+#include <atomic>
#include <condition_variable>
#include <functional>
#include <memory>
OpenPOWER on IntegriCloud