<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - debug_names in clang does not work properly with type_units (DWARF 5)"
   href="https://bugs.llvm.org/show_bug.cgi?id=42438">42438</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>debug_names in clang does not work properly with type_units (DWARF 5)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>cmtice@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>