From 49e72e69e5f51df55b37d84aa14335fd12f6ae26 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 18 Sep 2015 22:58:12 +0000 Subject: [PATCH] Fix build error that std::atomic is not copy-constructible. llvm-svn: 248061 --- lld/COFF/ICF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/COFF/ICF.cpp b/lld/COFF/ICF.cpp index 889349e642f6..43d4a5f8789c 100644 --- a/lld/COFF/ICF.cpp +++ b/lld/COFF/ICF.cpp @@ -218,7 +218,7 @@ void ICF::run(const std::vector &Vec) { }); for (;;) { - std::atomic Redo = false; + std::atomic Redo(false); parallel_for_each(VChunks.begin(), VChunks.end(), [&](std::vector &Chunks) { if (forEachGroup(Chunks, equalsVariable))