[llvm] [CLANG][DWARF] Handle DIE offset collision in DW_IDX_parent (PR #95039)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 12 16:51:51 PDT 2024


ayermolo wrote:

> Passing false to what exactly?

to DebugNames->addName, instead of CU->getOutUnitDIE()->getTag() == dwarf::DW_TAG_type_unit.

Basically issue was I was accessing getOutUnitDIE which was allocated local BumpAllocator in CompileUnit::cloneAndEmit. So memory was garbage.

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


More information about the llvm-commits mailing list