<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55224>55224</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[X86] Uninitialized variable warnings in cetintrin.h
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:X86,
clang:headers
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
RKSimon
</td>
</tr>
</table>
<pre>
https://godbolt.org/z/bqxb7fdvr
We see these with "-Wall -Wsystem-headers" builds:
```
/opt/compiler-explorer/clang-assertions-trunk-20220502/lib/clang/15.0.0/include/cetintrin.h:47:32: warning: variable 't' is uninitialized when used here [-Wuninitialized]
return __builtin_ia32_rdsspd(t);
^
/opt/compiler-explorer/clang-assertions-trunk-20220502/lib/clang/15.0.0/include/cetintrin.h:46:17: note: initialize the variable 't' to silence this warning
unsigned int t;
^
/opt/compiler-explorer/clang-assertions-trunk-20220502/lib/clang/15.0.0/include/cetintrin.h:57:32: warning: variable 't' is uninitialized when used here [-Wuninitialized]
return __builtin_ia32_rdsspq(t);
^
/opt/compiler-explorer/clang-assertions-trunk-20220502/lib/clang/15.0.0/include/cetintrin.h:56:23: note: initialize the variable 't' to silence this warning
unsigned long long t;
^
```
Noticed while triaging #35297
CC @phoebewang
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzVVcFymzAQ_Rq4aGCwBMY-cHCS5tKZHtrpuDePhNagRpaIJOwkX98Vtus4nfTWyZSBlWAXdt97O4uw8rnpQxh8wlYJvcezs1JYHXLrOrx7wUs8Pol6K_cuKe6SYnW0ayAegIQePJCDCj1JKM3WXGuSrf2zD7DLeuASnEcHEaPSckry6hvJvDidx1t6b4eAtrW7QWlwGTwN2jpw8Znmpsu49-CCssZnwY3mIaMFpUVVUIzQSpzjcJ1VeZEXuFGm1aOE6IKgTHDK5D0WUtZoGEVDDtwZhW_hds-d4kIDoqmxlJooT0Z0qqC4Vi8gyaEHQ0aPux4cxlU32foqIqnujngIcRBGZ8hmE-Fj8o3ijG6c9H6QCV1ggmXCbs7Rfz2S6tOHsDRHM4tUEWMDxPUCNar_J2PBEo91mTb6kb4zuyeUo_GqM0gfZiHhXfgfhLf62K54_D-6oopdQdm_6AptTXc07_fGW-zXY-SLDaqdJMF8BGvmHSbCQhir6LJ-PYBub0lSFkNvQcCBx6DpcSobJpdsydOggoYG1fyxmKOC5PuV6L9BnsB4ZIG8YiodnX47XXFSjiJHlSLren9essHZn9BGBZX3I-DQvK8qSsu0b-pZuV3KctbW23I5Z9WihppvZyBlxReyFKnmArSPZeKoFbx9ACMxY6yZorq3cTQftWWry0xGPKlqzk0wK0pWlnnN-KLlomClYMDEAumBHVc6j0XGf0LqmqleMXYenVr54C9O7LEo40RZ_D4fQ29d8_XzN7WzJp2gNROuXy3S-r8">