[lld] [lld-macho] Fix bug in makeSyntheticInputSection when -dead_strip flag is specified (PR #86878)
Kyungwoo Lee via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 27 16:13:54 PDT 2024
================
@@ -377,7 +377,7 @@ static void handleSectionBoundarySymbol(const Undefined &sym, StringRef segSect,
// live. Marking the isec live ensures an OutputSection is created that the
// start/end symbol can refer to.
assert(sym.isLive());
- isec->live = true;
+ assert(isec->live == true);
----------------
kyulee-com wrote:
Nit: you could do `assert(isec->live);`
https://github.com/llvm/llvm-project/pull/86878
More information about the llvm-commits
mailing list