[lld] [lld][MachO] Fix symbol insertion in `transplantSymbolsAtOffset` (PR #120737)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 21 17:37:36 PST 2024
================
@@ -91,6 +97,11 @@ static void transplantSymbolsAtOffset(InputSection *fromIsec,
}
return true;
});
+ assert(llvm::is_sorted(toIsec->symbols,
+ [](const Defined *s, const Defined *t) {
+ return s->value < t->value;
+ }) &&
+ "Symbols should still be sorted at exit.");
----------------
alx32 wrote:
Great, thanks for checking this.
https://github.com/llvm/llvm-project/pull/120737
More information about the llvm-commits
mailing list