summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Lee <leevince@fb.com>2022-01-10 00:07:42 -0800
committerVincent Lee <leevince@fb.com>2022-01-10 00:20:35 -0800
commit7a161eb43b280a6194fef5b65a81ef59921ebf02 (patch)
tree049a49261f02e65d4e11a6c1743699803cf54f36
parent92d55e7336db8597e90eefcdd72bc33ef553a454 (diff)
downloadllvm-7a161eb43b280a6194fef5b65a81ef59921ebf02.tar.gz
[lld-macho] Fix shadowed variable
This fixes a windows build failure from D115416.
-rw-r--r--lld/MachO/Writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/MachO/Writer.cpp b/lld/MachO/Writer.cpp
index 3c7bea335c66..b0ca5eeaa5ad 100644
--- a/lld/MachO/Writer.cpp
+++ b/lld/MachO/Writer.cpp
@@ -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();