<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/134913>134913</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[MIPS] Compiler crash when using __builtin_unreachable
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hpoussin
</td>
</tr>
</table>
<pre>
Using clang version 20.1.2
clang++ -target "mipsel-w64-windows-gnu" -c test.cpp
```
[[__noreturn__]] inline void g() {
__builtin_unreachable();
}
void f(int i)
{
if (i == 0)
g();
}
```
Note that using `clang` instead of `clang++` doesn't exhibit the problem.
Possible workaround: add `-O3`
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxskl-rnDwQxj_NeDMoMcZ_F16477LwXrQ9UHot0cxq2mwiSdxtv33R3cNpoSAI-c088_DMyBD0bIk6KE9QnhO5xcX5blndFoK2yejUr-5b0HbGyUg745180M4iZ1mecWA9sP4gwE_AT5hG6WeKCJzf9BrIpI9KpA9tlXuEdLYbcI7phJFCzKZ1fSpAxV4f6w8np2GwzlPcvB0GKM9QnlFboy3h3WmFM_AGeItQn4D1OAzjpk3UdtisJzktcjT0LIFir4D6_Jx0dF-BN9pG1Dvf4SGC-oo7QCjOUJyRPen7rL-E_vTL-s8uEsZFRtyOqKBiz0wqhtqGSFKhu348H1HtUDkKFngdkX4uetQR40K4ejcaumXA-jcXgh4N4cP5H9K7zSooepRK7WrplwIqlqiuUG3RyoS6vBYiF4y3ebJ0rGkn3uSNGOtGXhuRi2urct5UigS1jUp0xxkvmWBN3nJR5lndFHVdjrksmqqVdQmC0U1qkxlzv2XOz4kOYaMuL0SbF4mRI5nwfju-26vScZsDCGZ0iOGjL-pojiv79P_b132b_7nbqg15nLwMCz4Wsq_0_rnMZPOmW2JcAxQ98Avwy6zjso3Z5G7AL_ug1y9dvftOUwR-OdwG4JeX4XvHfwcAAP__0U7jeQ">