diff options
| author | Rui Ueyama <ruiu@google.com> | 2015-09-18 22:58:12 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2015-09-18 22:58:12 +0000 |
| commit | 49e72e69e5f51df55b37d84aa14335fd12f6ae26 (patch) | |
| tree | 774b9249af892a5184c0c1330273bed2af63280c | |
| parent | f77f8ae4500c2e57a95222d5a3533a76ada7a103 (diff) | |
| download | bcm5719-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.cpp | 2 |
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)) |

