]> granicus.if.org Git - clang/commit
Compute 'this' correctly for block in lambda.
authorEli Friedman <eli.friedman@gmail.com>
Fri, 12 Jul 2013 22:05:26 +0000 (22:05 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 12 Jul 2013 22:05:26 +0000 (22:05 +0000)
commitc1b8d095c18c3f55d662c49e59f7a934ae7e9440
tree8716d3742b6d2c2531e87d30e2f0c6a2024af390
parent6e9d86b31813edafb775c93e5b5595ebce1e71e1
Compute 'this' correctly for block in lambda.

Using CurFuncDecl is both correct and simple compared to crawling
the DeclContexts of the block.

Fixes <rdar://problem/14415072>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186210 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBlocks.cpp
test/CodeGenObjCXX/lambda-expressions.mm