From d8a3f46e15b5f12aaf9ff365471270e03d2f9bab Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Thu, 24 Mar 2016 20:39:17 +0000 Subject: [PATCH] Add 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 . Patch by Bryan Drewery. Reviewers: chandlerc, joker.eph Subscribers: bdrewery, llvm-commits Differential Revision: http://reviews.llvm.org/D18460 llvm-svn: 264335 --- include/llvm/Support/ThreadPool.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/llvm/Support/ThreadPool.h b/include/llvm/Support/ThreadPool.h index 745334db445..665cec2465b 100644 --- a/include/llvm/Support/ThreadPool.h +++ b/include/llvm/Support/ThreadPool.h @@ -33,6 +33,7 @@ #pragma warning(pop) #endif +#include #include #include #include