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

via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 17 09:19:22 PDT 2025


https://github.com/y-Adrian updated https://github.com/llvm/llvm-project/pull/163839

>From 656c03d261775b1195223077e5cb16a7402c209a Mon Sep 17 00:00:00 2001
From: Adrian <zhaoxu7263 at 163.com>
Date: Fri, 17 Oct 2025 01:56:33 +0800
Subject: [PATCH] [CIR]llvm#163601:handle function type

---
 clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp b/clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp
index 1b85a530cbdd7..608a965235f26 100644
--- a/clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp
@@ -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 "_ZTVN10__cxxabiv120__function_type_infoE";
 
   case Type::Enum:
     cgm.errorNYI("VTableClassNameForType: Enum");



More information about the cfe-commits mailing list