Skip to content

Commit

Permalink
[lld-macho] Fix shadowed variable
Browse files Browse the repository at this point in the history
This fixes a windows build failure from D115416.
  • Loading branch information
thevinster committed Jan 10, 2022
1 parent 92d55e7 commit 7a161eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lld/MachO/Writer.cpp
Expand Up @@ -1123,7 +1123,7 @@ void Writer::writeUuid() {
threadFutures.reserve(chunks.size());
for (size_t i = 0; i < chunks.size(); ++i)
threadFutures.emplace_back(threadPool.async(
[&](size_t i) { hashes[i] = xxHash64(chunks[i]); }, i));
[&](size_t j) { hashes[j] = xxHash64(chunks[j]); }, i));
for (std::shared_future<void> &future : threadFutures)
future.wait();

Expand Down

0 comments on commit 7a161eb

Please sign in to comment.