]> granicus.if.org Git - clang/commit
Clean up r156925, so that we only mark the capturing DeclRefExpr of a
authorDouglas Gregor <dgregor@apple.com>
Wed, 16 May 2012 17:01:33 +0000 (17:01 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 16 May 2012 17:01:33 +0000 (17:01 +0000)
commitd57f52ca4d0e9d5d42dd6947d1e66d693625cf2c
tree2fccc81f2b9b7d2ce2da0dd34c2171db49b12356
parent29a93f810ae5277446f610e8b6cdf0985febb989
Clean up r156925, so that we only mark the capturing DeclRefExpr of a
lambda as referring to a local in an enclosing scope if we're in the
enclosing scope of the lambda (not it's function call operator). Also,
turn the test into an IR generation test, since that's where the
crashes occurred. Really fixes PR12746 / <rdar://problem/11465120>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156926 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/CXX/expr/expr.prim/expr.prim.lambda/blocks-irgen.mm [new file with mode: 0644]
test/CXX/expr/expr.prim/expr.prim.lambda/blocks.mm