================ @@ -367,9 +367,11 @@ void MangleContext::mangleObjCMethodName(const ObjCMethodDecl *MD, } OS << (MD->isInstanceMethod() ? '-' : '+') << '['; if (const auto *CID = MD->getCategory()) { - OS << CID->getClassInterface()->getName(); - if (includeCategoryNamespace) { - OS << '(' << *CID << ')'; + if (const auto *CI = CID->getClassInterface()) { + OS << CI->getName(); + if (includeCategoryNamespace) { + OS << '(' << *CID << ')'; ---------------- ahatanak wrote:
Should we still try to emit the category name (`*CID`) when the class interface (`CI`) isn't found? https://github.com/llvm/llvm-project/pull/137324 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits