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

    <tr>
        <th>Summary</th>
        <td>
            [clang] crash when using `[[clang::musttail]]` on function marked `[[noreturn]]`
        </td>
    </tr>

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

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

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

<pre>
    ```c++
[[noreturn]] void throw_int() {
  throw int();
}

void throw_int_wrapper() {
  [[clang::musttail]] return throw_int();
}
```
causes clang to crash: https://godbolt.org/z/vvPh9KGGn
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8Ustu2zAQ_JrVhYhBkSZlHXiwISiHXvoHAUXSEhuKFPiw0X59IclukLQosNADi5mdmV2Zkh29MQLYBVhXyZKnEMUyWefte9M01RD0TwEc76WAXNbCHeDzhrn4EE0u0QPrgHXoFqxGeYrh_mZ9BnIC0iJoHhC0t9CfFtAnWdM9PrbnZ5q3e5TLYuLfdLsG5aQfgZ6BnueScpbWPeTs2r4K-sfUp8P9V8mSTEIbL8oBqSjTBPSMppyXtE4iPZB-DHoILh9CHIH0v4D0t9v3qf32-uorLahuaSsrI-oG05Y3jPJqElfV4oHLoW0kNkzWlNPWmPqk5FEfW36trCCY0JpQTHB9YvygGNWY6RO90iuRwwBHbGZp3cG527zOrmxKxYiGc1pXTg7GpW2hhDyDUUGb0XggZN1yFCvyZShjgiN2NuX0wZVtdts97FjW7ebRfTIelWT9iNaY_p87cIyCR9fiVbbBo1nGd6M_gJ-PBjiuSnTiS7g2T2U4qDAD6Vd5j9fLEsMPozKQfvOdgPSb9d8BAAD__3Mj1jE">