clang assert of "Unable to find base lambda address" from adjustMemberOfForLambdaCaptures.
| Bugzilla Link | 52071 |
| Resolution | FIXED |
| Resolved on | Oct 06, 2021 14:40 |
| Version | unspecified |
| OS | All |
| Attachments | Test to reproduce the problem. |
Extended Description
Attached test assert in adjustMemberOfForLambdaCaptures.
The problem is for map(to: lambda) where lambda with reference type.
Command line: clang -cc1 -fopenmp -fopenmp-targets=x86_64-pc-linux-gnu -fopenmp-version=50 -x c++ -emit-llvm -o - x.cpp
clang: /localdisk2/jyu2/git/xmain/llvm/clang/lib/CodeGen/CGOpenMPRuntime.cpp:9433: void (anonymous namespace)::MappableExprsHandler::adjustMemberOfForLambdaCaptures(const llvm::DenseMap<llvm::Value *, llvm::Value *> &, (anonymous namespace)::MappableExprsHandler::MapBaseValuesArrayTy &, (anonymous namespace)::MappableExprsHandler::MapValuesArrayTy &, (anonymous namespace)::MappableExprsHandler::MapFlagsArrayTy &) const: Assertion `TgtIdx != -1 && "Unable to find parent lambda."' failed. PLEASE submit a bug report to https://software.intel.com/en-us/support/priority-support and include the crash backtrace, preprocessed source, and associated run script.
commit rGa4743eba3c13
I submit patch: https://reviews.llvm.org/D111115