]> granicus.if.org Git - clang/commit
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)
commit00cfd3ff27bf1b2d323717402403086af1dc3237
tree0299043a26f02941c9a1645754105139e616c4ee
parenta7fb0fca0bbe2fea51490be70f219d1d818fac8f
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362178 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/AnalysisBasedWarnings.h
include/clang/Sema/ScopeInfo.h
include/clang/Sema/Sema.h
lib/Sema/AnalysisBasedWarnings.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaExpr.cpp
test/Analysis/blocks.mm