https://bugs.llvm.org/show_bug.cgi?id=42438

            Bug ID: 42438
           Summary: debug_names in clang does not work properly with
                    type_units (DWARF 5)
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]

When generating type_units, llvm will sometimes optimistically try to generate
type units, and then throw them away when it cannot complete the operation (see
the comment at the top of DwarfDebug::addDwarfTypeUnitType).  This is not
compatible with current debug_names, as the type unit gets added to debug_names
when created, but not removed when it gets thrown away, so debug_names ends up
pointing to a non-existent type unit.

LLVM needs to be modified either to remove the type unit from the accelerator
table, or to not add it to the accelerators until we're sure the type unit will
be used, or by modifying the type unit generation so that ti does not do these
opportunistic attempts.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to