<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/98814>98814</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
valgrind error in function DSAAttrChecker::VisitDeclRefExpr file SemaOpenMP.cpp line 3982
</td>
</tr>
<tr>
<th>Labels</th>
<td>
bug,
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dcb314
</td>
</tr>
</table>
<pre>
$ valgrind -q --trace-children=yes ~/llvm/results/bin/clang -fopenmp -std=gnu99 -c bug159.c
==880970== Conditional jump or move depends on uninitialised value(s)
==880970== at 0x46E5661: (anonymous namespace)::DSAAttrChecker::VisitDeclRefExpr(clang::DeclRefExpr*) (SemaOpenMP.cpp:3982)
Clang source code is
if (!isOpenMPTargetExecutionDirective(DKind) && Res &&
[bug159.c.gz](https://github.com/user-attachments/files/16227650/bug159.c.gz)
This bug seems to have existed since sometime before git hash 7cb5faf6da5a6f6335aca8a2532e5320ec434458, dated 20240615.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMU8GO5CYU_Br68uQWfti0ffChtz19iaJEu6vcMTzbbGxwALdmcsi3R3RPsj2HRHuxEYii6lWVitFOjqhj9SdW9we1p9mHzuhBlNVh8OatY7xn_MywgptapmCdgeIPKIoUlKZCz3YxgRwT_RtF-IvhdVluK8NroLgvKTK8DtYxvOpFuQmK0W_k1g2KmAwT_eT2toVCw7BPZd0e9ftzomeibxrenvhjDRfvjE3WO7XAt33dwAdY_Y3A0EbORPAOdmedTVYtNpLJfHdi2ESG7X_CAoBKwF8r-VJLWTJxBoaNct69rX6P4NRKcVOaMog4M3Huv5zPKYXLTPp3Co-932y0qSe9fKbx5XULDJu73vcbzwdnhm1-4gut6peN3M-_HvW2MXEWbYPfmd6_l_vMot-DJtDeENj4fJ7Zgx0zHMPSxgfeVxUmSi-vpPc8r94G0sne8ij6n6wzDwKSoYTPFN-Xz7Cs_vSPHcfpT1b3DJs5pS1mOXhleJ1smvfhqH12eo8UCpWS0vNK7m75aBfK_1IinmTNcwqeED-q_DrbmP2HSLRGSB5mdSOgVxsTGYjWaYLoV0p2JRho9IFgsglmFWc46aEe1SiNqpUcpRC10qpRWAukWiAnXYmqqhuGFzAqAyLHisuyPj6TOJhOmFa06kBdeULeylrK-jB3osRRqnbg2ijeirpsSpIVH6TQldTSHGx3BzyVVVnxklfHU0lte8K64QNvq_bEKk6rsssxN-Pow3SwMe7UtU1TVodFDbTEewERh31iiAwvDPERIMTcy9Dlu8WwT5FVfLExxe9oyaaFun_bSSH4ANbBuDudAwA_kljIlsHHUMJiHUHO5WEPS_c_EXjv_J3kFvw30onh9S4zx-Ch9Nbh3wEAAP__EeVZ_A">