Fix build error that std::atomic is not copy-constructible.

llvm-svn: 248061
This commit is contained in:
Rui Ueyama 2015-09-18 22:58:12 +00:00
parent f77f8ae450
commit 49e72e69e5
1 changed files with 1 additions and 1 deletions

View File

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