diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2017-03-01 06:11:25 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2017-03-01 06:11:25 +0000 |
commit | 7cbbb88f238527dc6633c4cec1e1f057555410a3 (patch) | |
tree | 86e4c2be6da62047a0847dd2544ee44e483a7af2 /llvm/lib/Support/Path.cpp | |
parent | 1a1d9594231929abfdc61be02476719967f0bcf8 (diff) | |
download | bcm5719-llvm-7cbbb88f238527dc6633c4cec1e1f057555410a3.tar.gz bcm5719-llvm-7cbbb88f238527dc6633c4cec1e1f057555410a3.zip |
[Sema] Add variable captured by a block to the enclosing lambda's
potential capture list.
Fix Sema::getCurLambda() to return the innermost lambda scope when there
is a block enclosed in the lambda. Previously, the method would return a
nullptr in such cases, which would prevent a variable captured by the
enclosed block to be added to the lambda scope's potential capture list.
rdar://problem/28412462
Differential Revision: https://reviews.llvm.org/D25556
llvm-svn: 296584
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
0 files changed, 0 insertions, 0 deletions