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

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 16 11:51:43 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";
----------------
n2h9 wrote:

Looking at  [ItaniumCXXABI.cpp#L3977 ](https://github.com/llvm/llvm-project/blob/main/clang/lib/CodeGen/ItaniumCXXABI.cpp#L3977) should it be `_ZTVN10__cxxabiv120__function_type_infoE` here ? 

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


More information about the cfe-commits mailing list