<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54349>54349</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format crashes on __asm blocks enclosing goto labels.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format,
crash
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
owenca
</td>
</tr>
</table>
<pre>
clang-format crashes on `clang/test/CodeGen/ms-inline-asm.cpp`, which can be reduced to 3 lines as shown below:
```
~$ ls .clang-format
ls: .clang-format: No such file or directory
~$ ./clang-format -version
clang-format version 15.0.0 (https://github.com/llvm/llvm-project 9f616a467fc710f084b7e57812a2ed64c214c2c6)
~$ ./clang-format
__asm {
a:
}
Assertion failed: ((!TypeIsFinalized || T == Type) && "Please use overwriteFixedType to change a fixed type."), function setType, file FormatToken.h, line 351.
...
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUk1v2zAM_TX2hYhgyV_xwYc0WYZdhh16L2SZtrUqViDJTbtfP8re0KXABgygIFGPoh4f2dn-rVVGzuNusO4iAygn_YQe7AxJla1QIs4BfaDtaHv8jDOdLn6nZ6Nn3El_Yep6peBEHOE2aTWBkjN0CA77RWEPwUIOMdiD9OAne4uwsbckPyTZKckO8fVmm1t_SkQBxgP7k9wGGk_PPgB08dWCX-jvQRsE66DXDlWw7u0uJSPud_XuXtB5bect6g76hQAvWcYySMR-CuEaf6ckZKMO09IxZS_kGPPye9tdnf1Of0MzVLySRVUPqubZkO2Lrsay3nMhBfZVoQSnpapENP8kuYFPTyQ1JPXD5sp38erTdjh4jy5EyoMkFfooC7FejT--XfGLP-tZGv2DmpLURzJ4hCQ_kUHEiQg9ID4VbeKbQekRFlqWtLg5HfCsX7GPobGpaiKOCJI0f41tpmuiLmI5NArDMquVjMewJT9uzTmvRT3aZ5zZFG_jaEBecraVwRj7MBVp3-Z9kzcyDToY_OvEbhJ1xqpnDzgrY72eRxgtkTWSRs6zdHGm_b8-kqu9X9DToSzyokmnlhfURaxyuc_qfYVC5jJvRK9K0SBXfZNu37VJ-UCK3DUzCnSM-q7Eo1ueUt2KTIgs54LnvCwqJnmzl1VX8kFQ_kwlRYYX6iqLzJh1Y-ralWS3jJ5Ao33w76D0Xo8z4kqA8sslTNa19kaqyHQtp11r-Qn2Lz3m">