summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-09-18 22:58:12 +0000
committerRui Ueyama <ruiu@google.com>2015-09-18 22:58:12 +0000
commit49e72e69e5f51df55b37d84aa14335fd12f6ae26 (patch)
tree774b9249af892a5184c0c1330273bed2af63280c
parentf77f8ae4500c2e57a95222d5a3533a76ada7a103 (diff)
downloadbcm5719-llvm-49e72e69e5f51df55b37d84aa14335fd12f6ae26.tar.gz
bcm5719-llvm-49e72e69e5f51df55b37d84aa14335fd12f6ae26.zip
Fix build error that std::atomic is not copy-constructible.
llvm-svn: 248061
-rw-r--r--lld/COFF/ICF.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/COFF/ICF.cpp b/lld/COFF/ICF.cpp
index 889349e642f..43d4a5f8789 100644
--- a/lld/COFF/ICF.cpp
+++ b/lld/COFF/ICF.cpp
@@ -218,7 +218,7 @@ void ICF::run(const std::vector<Chunk *> &Vec) {
});
for (;;) {
- std::atomic<bool> Redo = false;
+ std::atomic<bool> Redo(false);
parallel_for_each(VChunks.begin(), VChunks.end(),
[&](std::vector<SectionChunk *> &Chunks) {
if (forEachGroup(Chunks, equalsVariable))
OpenPOWER on IntegriCloud