[Lldb-commits] [lldb] [lldb][DWARFASTParserClang] Fix handle non-type template parameters in MakeAPValue (PR #186629)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 17 03:42:38 PDT 2026
================
@@ -2123,6 +2318,20 @@ bool DWARFASTParserClang::ParseTemplateDIE(
}
}
+ // Handle member function pointer NTTPs with no value attribute.
+ // DWARF doesn't emit DW_AT_const_value or DW_AT_location for these,
+ // so we extract the method name from the parent struct's DW_AT_name.
+ if (tag == DW_TAG_template_value_parameter && !uval64_valid &&
+ clang_type.IsMemberFunctionPointerType()) {
+ if (auto *method = ResolveMethodDeclFromName(die)) {
+ template_param_infos.InsertArg(
+ name, clang::TemplateArgument(method,
+ ClangUtil::GetQualType(clang_type),
+ is_default_template_arg));
+ return true;
+ }
+ }
----------------
Michael137 wrote:
Lets split this out into a separate PR
https://github.com/llvm/llvm-project/pull/186629
More information about the lldb-commits
mailing list