llvm-project/cross-project-tests
Peter Rong 9cd29a8ba1
[DebugInfo] Fix an assertion in DWARFTypePrinter (#178986)
A `DW_TAG_ptr_to_member_type` has no `RawName` and would trigger an
assertion.


7e48b14d1e/llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h (L497-L502)

The assertion is mostly benign since it will be compared with other
strings and return false.


7e48b14d1e/llvm/include/llvm/DebugInfo/DWARF/DWARFTypePrinter.h (L505-L510)

But this is blocking our assertion builds.
We should escape `DW_TAG_ptr_to_member_type` as well when looking for
type names.

Adding a test to demonstrate how the assertion could be triggered, and
how we fixed it.

Depends on https://github.com/llvm/llvm-project/pull/180655

[Assisted-by](https://t.ly/Dkjjk): [Claude Opus
4.5](https://www.anthropic.com/news/claude-opus-4-5)
2026-02-10 04:59:53 +00:00
..