[lld] r248061 - Fix build error that std::atomic is not copy-constructible.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 18 15:58:12 PDT 2015


Author: ruiu
Date: Fri Sep 18 17:58:12 2015
New Revision: 248061

URL: http://llvm.org/viewvc/llvm-project?rev=248061&view=rev
Log:
Fix build error that std::atomic is not copy-constructible.

Modified:
    lld/trunk/COFF/ICF.cpp

Modified: lld/trunk/COFF/ICF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/ICF.cpp?rev=248061&r1=248060&r2=248061&view=diff
==============================================================================
--- lld/trunk/COFF/ICF.cpp (original)
+++ lld/trunk/COFF/ICF.cpp Fri Sep 18 17:58:12 2015
@@ -218,7 +218,7 @@ void ICF::run(const std::vector<Chunk *>
   });
 
   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))




More information about the llvm-commits mailing list