[clang] [CIR]lAdd name for function type in vtable (PR #163839)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 16 12:49:16 PDT 2025


================
@@ -946,8 +946,7 @@ const char *vTableClassNameForType(const CIRGenModule &cgm, const Type *ty) {
 
   case Type::FunctionNoProto:
   case Type::FunctionProto:
-    cgm.errorNYI("VTableClassNameForType: __function_type_info");
-    break;
+    return "__ZTSN10__cxxabiv120__function_type_infoE";
----------------
andykaylor wrote:

Yes. `__ZTSN10__cxxabiv120__function_type_infoE` is the _typeinfo name for `__cxxabiv1::__function_type_info` but what we need here is the vtable.

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


More information about the cfe-commits mailing list