]> granicus.if.org Git - llvm/commit
Merging r264335:
authorDimitry Andric <dimitry@andric.com>
Tue, 5 Apr 2016 06:58:21 +0000 (06:58 +0000)
committerDimitry Andric <dimitry@andric.com>
Tue, 5 Apr 2016 06:58:21 +0000 (06:58 +0000)
commit8b47c17a53d683f313eaaa93c4a53de26d8fcba5
tree5b8a7e5425008d350c54669a7489a1ff5ff56e28
parent295c7a62d88d363361198766ce95900441727da9
Merging r264335:
------------------------------------------------------------------------
r264335 | dim | 2016-03-24 21:39:17 +0100 (Thu, 24 Mar 2016) | 17 lines

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

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_38@265380 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ThreadPool.h