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

    <tr>
        <th>Summary</th>
        <td>
            Globals without names trigger assertion in PrintModulePass
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    The PrintModulePass may trigger an assertion if there is a global that doesn't have a defined name, it happens in `https://github.com/llvm/llvm-project/blob/340d746abae18f6a69bdf4a3bbe4a46990bb755d/llvm/lib/IR/Globals.cpp#L151C1-L152C27` where it assumes that it has at least 1 character
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUks2K3DoQhZ9G3hTTSCX_jBZe3NvBITCBIeQFSla1raC2jUqeZt4-tCehQ3ZZaVGoON_5ikTitDD3qvlfNZ8q2su85n7ylCmFWPk1vPffZ4bXHJfydQ174lcSgSu9Q8lxmjgDLUAinEtcF4gXKDNnhihAMKXVU4IyU4GwsiwKuwIzvTEQBL7EhQMsdGWFZ4j3ybbxIhAXUK2eS9lE2f8UDgqHKZZ596dxvSocUnr7_Txtef3BY1E4-LR6hYOtdejqljyxeb601DofLjVZ77mmunVOe981TfhjT7z_-_JN4fD5iCyncdsU2hfTmLN5ejENnrFTrYbbB125M-9Xlg-4I7sAFUhMUsDAOFOmsXCuQm-Ds44q7k3ruubZOtTV3IfaaWpbZ2xTd5fn0bhgxs5Ra0jbhqmKPWq0RpsOrW5Qn0IIaOsxeGe9dW5UteYrxXS6Y5zWPFVRZOe-ddbZKpHnJIdaxIVvcAwV4t107o_u_D6JqnWKUuSxpcSSuP_VBNximde9HJ7kYf2hfPn7PKo9p_6f7R3xROFwxP8ZAAD__wye2gY">