[PATCH] D111115: [OPENMP] Fix assert of "Unable to find base lambda address" from adjustMemberOfForLambdaCaptures.
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 5 05:45:23 PDT 2021
ABataev added inline comments.
================
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:8445-8463
+ const ValueDecl *VD = Cap.getCapturedVar()->getCanonicalDecl();
+ const auto *RD = VD->getType()
+ .getCanonicalType()
+ .getNonReferenceType()
+ ->getAsCXXRecordDecl();
+ const auto *CurExecDir = CurDir.get<const OMPExecutableDirective *>();
+ for (const auto *C : CurExecDir->getClausesOfKind<OMPMapClause>())
----------------
Maybe add a new data container for mapped lambdas, similar to `FirstPrivateDecls` to avoid all those extra checks here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111115/new/
https://reviews.llvm.org/D111115
More information about the cfe-commits
mailing list