[lld] [lld-macho] Add swift support to ObjC category merger (PR #95124)

Ellis Hoag via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 12 13:59:51 PDT 2024


================
@@ -679,11 +679,16 @@ void ObjcCategoryMerger::parseProtocolListInfo(const ConcatInputSection *isec,
       (protocolCount * target->wordSize) +
       /*header(count)*/ protocolListHeaderLayout.totalSize +
       /*extra null value*/ target->wordSize;
-  assert(expectedListSize == ptrListSym->isec()->data.size() &&
+
+  // On Swift, the protocol list does not have the extra (unecessary) null value
----------------
ellishg wrote:

```suggestion
  // On Swift, the protocol list does not have the extra (unnecessary) null value.
```

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


More information about the llvm-commits mailing list