Defer capture initialization for blocks until after we've left the
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 31 May 2019 00:45:09 +0000 (00:45 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 31 May 2019 00:45:09 +0000 (00:45 +0000)
commit2fdd95c1c823ebafc9286f7b730339c38636c5a8
treeffae98dbc613c810a160202df437d4f6c607061b
parent4a585a3edd1c96f19b819d44df25c376e4987a44
Defer capture initialization for blocks until after we've left the
function scope.

This removes one of the last few cases where we build expressions in the
wrong function scope context. No functionality change intended.

llvm-svn: 362178
clang/include/clang/Sema/AnalysisBasedWarnings.h
clang/include/clang/Sema/ScopeInfo.h
clang/include/clang/Sema/Sema.h
clang/lib/Sema/AnalysisBasedWarnings.cpp
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/Analysis/blocks.mm