================ @@ -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 << ')'; ---------------- AaronBallman wrote:
I have no idea; what does Objective-C expect? CC @rjmccall ? 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