clang assert on the constexpr variable of omp clause is not marked as used
| Bugzilla Link | 50206 |
| Resolution | FIXED |
| Resolved on | May 04, 2021 17:06 |
| Version | unspecified |
| OS | Linux |
| Attachments | Test to reproduce the problem. |
| Fixed by commit(s) | rG5285748c2c76: Fix assert on the variable which is used in omp clause is not marked |
Extended Description
Attached test assert in clang
cmplrllvm-27165>clang -cc1 -fopenmp -fopenmp-version=50 -fopenmp-targets=x86_64-pc-linux-gnu -x c++ -emit-llvm -o - j1.cpp
clang: /localdisk2/jyu2/git/llorg/llvm/clang/lib/CodeGen/CGExpr.cpp:2765: clang::CodeGen::LValue clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(const clang::DeclRefExpr*): Assertion `(ND->isUsed(false) || !isa
-
<eof> parser at end of file -
Per-file LLVM IR generation -
j1.cpp:4:6: Generating code for declaration 'test'
This is fixed in https://reviews.llvm.org/D101781