[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


================
@@ -0,0 +1,53 @@
+// Test that LLDB correctly handles non-type template parameters (NTTPs)
+// of various kinds beyond plain integers.
+//
+// DWARF encodes each NTTP as a DW_TAG_template_value_parameter with a
+// DW_AT_const_value or DW_AT_location. MakeAPValue must convert these
+// values into clang APValues so that each specialization gets a distinct
+// TemplateArgument.
+//
+// Without the fix, MakeAPValue only handled integer/enum/float types.
+// Member data pointer, pointer, and nullptr NTTPs were silently dropped,
+// causing duplicate-specialization bugs.
----------------
Michael137 wrote:

```suggestion
```

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


More information about the lldb-commits mailing list