[lld] [LLD] Implement --enable-non-contiguous-regions (PR #90007)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu May 9 23:53:59 PDT 2024


================
@@ -226,6 +226,8 @@ void OutputSection::finalizeInputSections() {
         i = std::prev(mergeSections.end());
         syn->entsize = ms->entsize;
         isd->sections.push_back(syn);
+        if (script)
----------------
MaskRay wrote:

`script` is always non-null, so you can pass a reference

https://github.com/llvm/llvm-project/pull/90007


More information about the llvm-commits mailing list