[PATCH] D25556: [Sema] Add variable captured by a block to the enclosing lambda's potential capture list
John McCall via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 13 16:36:11 PDT 2016
rjmccall added a comment.
Richard should probably weigh in about whether we should be recording potential captures at *all* capturing scopes. But at the very least, I think you have a bug here where the variable is declared outside of the block but within the lambda; in that case, it is definitely not a potential capture of the lambda.
https://reviews.llvm.org/D25556
More information about the cfe-commits
mailing list