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

    <tr>
        <th>Summary</th>
        <td>
            Clang backend code generator crash
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          2Look
      </td>
    </tr>
</table>

<pre>
    When running the code with: `-emit-llvm -Xclang -disable-llvm-passes`
clang behaves as expected. The same is true for just `-emit-llvm`.
I compiled the source file passing` -emit-llvm -c -o foo.bc` and` llc foo.bc` fails with the following message:
`'llc foo.bc' terminated by signal SIGSEGV (Address boundary error)`
I also ran `bugpoint -run-llc foo.bc`. The ouput files are attached to this message. Also attached are the files generated by clang in the /tmp directory when the crash happens
 
[bugpoint.zip](https://github.com/user-attachments/files/17327556/bugpoint.zip)
[tmp.zip](https://github.com/user-attachments/files/17327557/tmp.zip)

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysU09vpTYQ_zTmMgKZeQ94HDi8bcoqUm9btb0aPIB3jY08Jmn66StMkiaXnvZkyWPP78_MTzGb2RF1ovoiqodM7XHxocPfvP-RDV6_dH8u5CDszhk3Q1wIRq8Jnk1cxOUOopY5rSbm1j6tkP81WuVmyLVhNVhKt_mmmIlFLYV8EPJ-PhloUU_EoBjo743GSLqA3xcCViuBYYhhJ5h8gO87x884opbF2esRRr9uxpJO1NjvYSSYjCU4UI2bRS3hI8MRcg-T98UwHiXl9HFYO364nJSxnCSmrpO31j8f8ldiVjOJy_2EPzRh8-EzNhAprMapSBqGFzjcVRa-PX799uvXP0Dg7a51IGYY_O60Ci9AIfggsH036BGUZQ9BuUP2sM-bNy5CHnaXfyJ6Gub3bY9JM4MKBCpGNS6HIx7iYviNdQH3o-17-Xib5KWfMzkKb6zPERmX6gL7uG6gTaAx-vACz8dGpE0IihdY1LaR45M7vBpTfXnjXfxjNlE9CLwtMW58eIe9wH42cdmHYvSrwH5nCvnJbCUXWWCfaAnsy-aCTVXVAvtPLbF9h4rr9pNQmlPsJ4BMdxfdXlqVUVc2eKvqsmrbbOmQBkQ5KXlprxLxOkl9uw3TQPWox6ppMtOhxGspS1mWVVu1RasnjTephkahknUprpJWZWxx7Gbhw5wZ5p26sixvZZtZNZDlFE3ENBOBeKQ0dClYwz6zuEprOPJ_LaKJlrpfzpSp8Qc5fWb2dcQ-nIPL9mC7_3ErJe088i347zRGgX0imBw7OT51-G8AAAD__3iVYwE">