llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.84k stars 11.47k forks source link

valgrind error in function DSAAttrChecker::VisitDeclRefExpr file SemaOpenMP.cpp line 3982 #98814

Open dcb314 opened 1 month ago

dcb314 commented 1 month ago

$ 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

This bug seems to have existed since sometime before git hash 7cb5faf6da5a6f6335aca8a2532e5320ec434458, dated 20240615.

llvmbot commented 1 month ago

@llvm/issue-subscribers-bug

Author: None (dcb314)

$ 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.
llvmbot commented 1 month ago

@llvm/issue-subscribers-clang-frontend

Author: None (dcb314)

$ 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.