llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

clang assert of "Unable to find base lambda address" from adjustMemberOfForLambdaCaptures.

Open jyu2-git opened this issue 5 years ago • 2 comments

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.

jyu2-git avatar Oct 05 '21 03:10 jyu2-git

commit rGa4743eba3c13

jyu2-git avatar Oct 06 '21 21:10 jyu2-git

I submit patch: https://reviews.llvm.org/D111115

jyu2-git avatar Oct 06 '21 16:10 jyu2-git