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))