[clang] [CIR] Implement vTableClassName for Type::ObjCObject (PR #195232)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri May 1 15:48:15 PDT 2026


================
@@ -1074,8 +1074,15 @@ const char *vTableClassNameForType(const CIRGenModule &cgm, const Type *ty) {
   }
 
   case Type::ObjCObject:
-    cgm.errorNYI("VTableClassNameForType: ObjCObject");
-    break;
+    // Ignore protocol qualifiers.
+    ty = cast<ObjCObjectType>(ty)->getBaseType().getTypePtr();
----------------
andykaylor wrote:

Does the test case hit this code?

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


More information about the cfe-commits mailing list