[all-commits] [llvm/llvm-project] a4743e: Fix assert of "Unable to find base lambda address"...
jyu2-git via All-commits
all-commits at lists.llvm.org
Wed Oct 6 14:38:56 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a4743eba3c13799e667777764554fd44ccc6a33a
https://github.com/llvm/llvm-project/commit/a4743eba3c13799e667777764554fd44ccc6a33a
Author: Jennifer Yu <jennifer.yu at intel.com>
Date: 2021-10-06 (Wed, 06 Oct 2021)
Changed paths:
M clang/lib/CodeGen/CGOpenMPRuntime.cpp
M clang/test/OpenMP/nvptx_lambda_pointer_capturing.cpp
Log Message:
-----------
Fix assert of "Unable to find base lambda address" from
adjustMemberOfForLambdaCaptures.
The problem is happening when user passes lambda function with reference
type in the map clause.
The natural of the problem when processing generateInfoForCapture,
the BasePointer is generated with new load for a lambda variable with
reference type. It is not expected in adjustMemberOfForLambdaCaptures.
One way to fix this is to skipping call to generateInfoForCapture for
map(to:lambda). The map info will be generated later in the call to
generateDefaultMapInfo samiler as firsprivate clase.
This to fix https://bugs.llvm.org/show_bug.cgi?id=52071
Differential Revision:https://reviews.llvm.org/D111115
More information about the All-commits
mailing list