<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/64775>64775</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Buidling with DebugInfo exposes a number of crashes in DXILBitcodeWriter
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            backend:DirectX,
            HLSL
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            bogner
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          bogner
      </td>
    </tr>
</table>

<pre>
    There are a number of crashes in the DXILBitcodeWriter that can be hit easily by doing something like `clang-dxc -T cs_6_6 -g -Fox.obj anything.hlsl`. Some are debug info specific but others are more generally about metadata. We need to fix and add individual tests for each.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0kUFv2zAMhX-NfCFiOLLjxAcf2gXBCvTWAu2toCXaYitLgUR3yb8fnHbYYdhBkCCQj3zvw5x5CkS92t0rrYc4BUpKa7U7FriIi6n_-iuGaK_9s6NEgOuBsMwDJYgjmITZUQYOII7g-PrweM9ioqWXxEIJxKGAwQADgWMBwsz-CsMVbOQwQY4ziVtfnj8IVFsZj2Ha2IuBzTOY_Na-tbCZYHOKlzIO74Dhemsonc9etVUJT3H-2szSsEzAYYyQz2R4ZAPDIhDFUcq3kjkmgokCJfT-CjjERWAmQYuCJbwQBCILEmHkC2CwgNYCB8ufbBf0IJQlwxgTEBpXFravbVd3WFC_bTutD_tDtS9c37Zj09SV2dpOj922G9GMo2kOuqtqRD0W3OtK19Vhu9_udm3Tlg3t7c60h87Yw0hVpZqKZmRfev85lzFNBee8UN82-_2u8DiQz3_gofmgYFV9d-RERl5XjvqH0vrn49PjN9TUr0KbYZmyairPWfJfaWHx1N8vbP0K4xeLg-Ma58OaJl3OMVP-H_p_sBdL8r0TOWdV3yl9Uvo0sbhlKE2clT6tY7-vzTnFdzKi9OlmLyt9ujn8HQAA___e6ODE">