]> granicus.if.org Git - clang/commit
Use the BlockDecl captures list to infer the direct captures for a BlockDataRegion...
authorTed Kremenek <kremenek@apple.com>
Thu, 6 Dec 2012 07:17:26 +0000 (07:17 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 6 Dec 2012 07:17:26 +0000 (07:17 +0000)
commitb929f6636c79565e9a34c0656a962f9b198c5e80
tree5c04ad74242b918e747a25b81d47c5ec75f1fe5c
parente3ce2c10c3f6ae7b26700d758de909deab190d42
Use the BlockDecl captures list to infer the direct captures for a BlockDataRegion.  Fixes <rdar://problem/12415065>.

We still need to do a recursive walk to determine all static/global variables
referenced by a block, which is needed for region invalidation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@169481 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/AnalysisDeclContext.cpp
test/Analysis/blocks.m