[lld] [WebAssembly] Fix issues combining coop threads and PIC (PR #208332)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 9 22:51:11 PDT 2026
================
@@ -1152,6 +1161,10 @@ void Writer::combineOutputSegments() {
}
segments = std::move(newSegments);
+
+ // Fixup indices for any segments that have moved around.
+ for (size_t i = 0; i < segments.size(); ++i)
+ segments[i]->index = i;
----------------
sbc100 wrote:
Why is this needed as part of this change (but not before)?
https://github.com/llvm/llvm-project/pull/208332
More information about the llvm-commits
mailing list