<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/121923>121923</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
LLVM ERROR: out of memory
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
wxie7
</td>
</tr>
</table>
<pre>
```code
typedef float __attribute__((vector_size(-4))) A;
void foo(A *x) { *x = *x; }
```
https://godbolt.org/z/9K9KoMozn
```code
typedef float __attribute__((vector_size(-4))) A;
void foo(A *x) { *x = *x - 0; }
```
https://godbolt.org/z/b5ezn5Pde
The first code will not cause `LLVM ERROR: out of memory`, but will also crash clang.
Generated by fuzz.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy8UsGK2zAQ_ZrxZUiQR3FsH3RwunUPu0vLUnoNkj2OVRQrWHKy8dcXJ6EtPfTQQ2FAYoY37z3p6RDsYWBWkO0ge0r0FHs_qsu75Twxvr0q2Ip7Nb5lEFW8nrjlDjvndcT9Xsc4WjNF3u-BCqDizE304z7YmYGK1QaovBdWIHcgqrO3LXbeAxUVAlXvywzy3e2OIJ_uTblDyJ9AVD8VgKj6GE8BZAVUA9UH3xrv4tqPB6B6BqrL5_LZv_p5WHC_Qf-zeFyh-DcDJuN5yL7c1IKovvaMnR1DxMUBXqxzOPiIjZ4CI2zFy8u3V_z49vb5DWSFforoOzzy0Y_XhZA-oJniHadd8NiMOvTYOD0c1neKTzzwqCO3aK7YTfP86Cetkm0pS52wSnO5pUymMk96RWkmCl3KspNFnreUs2wEm01btKY0IkusIkGZSEWekqQ0XxvSjdhs00anne6EgI3go7Zu7dz5uJhPbAgTq5TSkmTitGEXbpEkGviCtykQLQkd1QJamekQYCOcDTH8WhNtdKz-8ibJNDr1xx_Y2E9m3fgjUL1sehyr0-i_cxOB6ht_AKofAs-KfgQAAP__i771eA">