https://github.com/y-Adrian created https://github.com/llvm/llvm-project/pull/163839
This commit adds the RTTI support for function type in the vtable. Issue https://github.com/llvm/llvm-project/issues/163601 >From d7a38e20f3998fab4d1353b0d86e528a1f428317 Mon Sep 17 00:00:00 2001 From: Adrian <[email protected]> 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..44919de69ae8e 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 "__ZTSN10__cxxabiv120__function_type_infoE"; case Type::Enum: cgm.errorNYI("VTableClassNameForType: Enum"); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
