We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 936519f commit 0412840Copy full SHA for 0412840
lld/MachO/ObjC.cpp
@@ -613,8 +613,8 @@ void ObjcCategoryMerger::collectCategoryWriterInfoFromCategory(
613
void ObjcCategoryMerger::parseProtocolListInfo(const ConcatInputSection *isec,
614
uint32_t secOffset,
615
PointerListInfo &ptrList) {
616
- if (!isec || (secOffset + target->wordSize > isec->data.size()))
617
- assert("Tried to read pointer list beyond protocol section end");
+ assert((isec && (secOffset + target->wordSize <= isec->data.size())) &&
+ "Tried to read pointer list beyond protocol section end");
618
619
const Reloc *reloc = isec->getRelocAt(secOffset);
620
if (!reloc)
0 commit comments