[PATCH] D58164: Block+lambda: allow reference capture
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 26 15:37:33 PDT 2019
ahatanak updated this revision to Diff 212016.
ahatanak added a comment.
Rebase.
I think the fix is correct. When the lambda expression for the generic lambda is built, `BuildLambdaExpr` passes a `Capture` object in `LambdaScopeInfo::Captures` to `BuildCaptureField` to build the closure class field for the capture, so it should be okay to read the type of the field and pass it to `LambdaScopeInfo::addCapture` when rebuilding the lambda scope info.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58164/new/
https://reviews.llvm.org/D58164
Files:
lib/Sema/SemaDecl.cpp
test/CodeGenObjCXX/block-nested-in-lambda.mm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58164.212016.patch
Type: text/x-patch
Size: 5644 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190726/85b616b7/attachment.bin>
More information about the cfe-commits
mailing list