[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, 8 Feb 2024 21:48:18 +0000 (22:48 +0100)
commit51049bae0b638b91d91a3adfcb06b387333976df
tree4746e4749d342c084d4f8b66754f9e6a2d0daa17
parent05a480cdf3942b19a8857ac43c43ea83f078eed3
[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]