<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/98794>98794</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[DebugInfo] Missing debug info for C11 atomics in CodeView
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
RealNeGate
</td>
</tr>
</table>
<pre>
Whenever `_Atomic` variables have their debug info written, the CodeView type ID is incomplete (just 0s) which leads to debuggers being unable to read the value.
```c
// Any use of _Atomic will cause this issue
int main() {
_Atomic int x = 16;
x += 1;
return x;
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcUk1v3CAQ_TXjyygrjD85-JDE2iqH9tBDe6zAHttEGFaAvcm_r_CutlElJMQbZubNvCdD0LMl6qB6garP5BYX57ufJM0P-iYjZcqNn93vhSzt5BFq9uc5ulUPUDPcpddSGQq4yJ0wLqQ9jqS2GbWdHF69jpEs8NcUw1c30i9NV4yfF8K3HnVAbQe3XgxFQuDt-xYisgBc4HXRw4KG5BgwulvVmXxARdrOuNnUOEU8yfEov0uz0QlYD-wZanY7w_3Nz8DP-Gw_cQuEbsL7GHjVxuAgExqXRCiEjW5J2kZcpbbA28QImpcbjo_k9OMDoegxr6F4hD8Q-MuBfgE9xc1b_HhA0PT_kc3GrhhFIWRGXd5wJgpeV222dIyEyis5qrYkRaKmYionUdYNY6IQQma644yXrMlLVlasak-SFaoeVV7nolJT00LJaJXanIzZ15Pzc3YM2om2EWVmpCITDhNwbul63wLnyRO-SzlPapsDlMzoEMO_KlFHc7inTwK92clB1eN3HUJS6YsXJufxNc9RHptLwj_8kG3edEuMlwDFXalZx2VTp8GtwM-p2f16unj3TkMEfj4oBuDn2wh7x_8GAAD__4ls3rc">