Add <atomic> to ThreadPool.h, since std::atomic is used
authorDimitry Andric <dimitry@andric.com>
Thu, 24 Mar 2016 20:39:17 +0000 (20:39 +0000)
committerDimitry Andric <dimitry@andric.com>
Thu, 24 Mar 2016 20:39:17 +0000 (20:39 +0000)
commit3a4f7ac669e54fa8b571ec921e4650ae2a7709b6
treec058e2628f322e2a4954b3a4be18c6d956654259
parent01bc66a8ce04297cd3688dacb7e6110b1a60cd50
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

llvm-svn: 264335
llvm/include/llvm/Support/ThreadPool.h