[lld] [lld][macho] Move unwind logic from equalsVariable to equalsConstant (PR #165325)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 27 15:20:48 PDT 2025
================
@@ -179,8 +179,30 @@ bool ICF::equalsConstant(const ConcatInputSection *ia,
return isecA->getOffset(ra.addend) == isecB->getOffset(rb.addend);
}
};
- return std::equal(ia->relocs.begin(), ia->relocs.end(), ib->relocs.begin(),
- f);
+ if (!std::equal(ia->relocs.begin(), ia->relocs.end(), ib->relocs.begin(), f))
----------------
ellishg wrote:
```suggestion
if (!llvm::equal(ia->relocs, ia->relocs, ib->relocs, f))
```
We should be able to use the LLVM version
https://github.com/llvm/llvm-project/pull/165325
More information about the llvm-commits
mailing list