[llvm-bugs] [Bug 52071] New: clang assert of "Unable to find base lambda address" from adjustMemberOfForLambdaCaptures.
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 4 20:30:14 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=52071
Bug ID: 52071
Summary: clang assert of "Unable to find base lambda address"
from adjustMemberOfForLambdaCaptures.
Product: OpenMP
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Clang Compiler Support
Assignee: unassignedclangbugs at nondot.org
Reporter: jennifer.yu at intel.com
CC: llvm-bugs at lists.llvm.org
Created attachment 25326
--> https://bugs.llvm.org/attachment.cgi?id=25326&action=edit
Test to reproduce the problem.
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211005/962a328b/attachment.html>
More information about the llvm-bugs
mailing list