[PATCH 33/79] [Backport to 15][DebugInfo] Handle null value of DW_TAG_template_value_...
authorDmitry Sidorov <dmitry.sidorov@intel.com>
Fri, 14 Apr 2023 15:03:07 +0000 (17:03 +0200)
committerAndreas Beckmann <anbe@debian.org>
Thu, 14 Mar 2024 19:01:08 +0000 (20:01 +0100)
commite982693619214210a398a8cb655acbca42bd7fd9
tree2432d990454a7a6187ae7fd292cd27b4e406f52f
parent1635dfeb83b0bca5d24aa91cddc76ec9fd9983f0
[PATCH 33/79] [Backport to 15][DebugInfo] Handle null value of DW_TAG_template_value_parameter (#1956)

It might be set as null in case if a function pointer is passed as auto
template parameter.

The patch also adds a test for a 'good' DW_TAG_template_value_parameter
value for function pointers, just because this case was untested.

Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
Gbp-Pq: Name 0033-Backport-to-15-DebugInfo-Handle-null-value-of-DW_TAG.patch
lib/SPIRV/LLVMToSPIRVDbgTran.cpp
test/DebugInfo/Generic/function-ptr-templ-null.ll [new file with mode: 0644]
test/DebugInfo/Generic/function-ptr-templ.ll [new file with mode: 0644]