[PATCH] D122768: [Clang][C++20] Support capturing structured bindings in lambdas
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 2 13:43:48 PDT 2022
aaron.ballman added subscribers: mikerice, ABataev.
aaron.ballman added inline comments.
Comment at: clang/lib/CodeGen/CGOpenMPRuntime.cpp:9060
- const VarDecl *VD = LC.getCapturedVar();
+ const VarDecl *VD = cast<VarDecl>(LC.getCapturedVar());
if (LC.getCaptureKind() != LCK_ByRef && !VD->getType()->isPointerType())
> cor3ntin wrote:
> > cor3ntin wrote:
> > > I'm not sure we currently prohibit capturing a structured binding in openmp, i should fix that
> > I disabled the feature in OpenMP mode, as this needs more investigation
> Ping @jdoerfert -- do you happen to know what's up here?
Ping @mikerice or @ABataev in case @jdoerfert is on vacation.
(Note, I don't think an answer to this question is needed to accept this review.)
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
More information about the cfe-commits