]> granicus.if.org Git - clang/commit
Defer building 'this' captures until we have left the capturing region
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 31 May 2019 01:17:04 +0000 (01:17 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 31 May 2019 01:17:04 +0000 (01:17 +0000)
commit1a0fe6c4a8b9cb87bd7d943f3f1289cbbf434147
treefff47c8fd6906d0eaf070b97c315af29257f3f90
parentf17828ac58f0964bef11bfd0766357a084156f15
Defer building 'this' captures until we have left the capturing region
and returned to the context in which 'this' should be captured.

This means we now always mark 'this' referenced from the context in
which it's actually referenced, rather than potentially from some
context nested within that.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362182 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/ScopeInfo.h
include/clang/Sema/Sema.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaLambda.cpp
lib/Sema/SemaStmt.cpp
test/AST/ast-dump-expr-json.cpp
test/AST/ast-dump-expr.cpp
test/SemaCXX/lambda-expressions.cpp