]> granicus.if.org Git - clang/commit
[analyzer] Skip checking blocks in dependent contexts.
authorDevin Coughlin <dcoughlin@apple.com>
Wed, 18 Nov 2015 22:46:52 +0000 (22:46 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Wed, 18 Nov 2015 22:46:52 +0000 (22:46 +0000)
commita121fca3f3d932cdeed9e839db4c7ded0cd80b00
tree61f32f6d12077194bd0e734f3abc1788b77f308a
parent77871bc698d266df121c7c40466219d634fe0bca
[analyzer] Skip checking blocks in dependent contexts.

Since we don't check functions in dependent contexts, we should skip blocks
in those contexts as well. This avoids an assertion failure when the
DeadStoresChecker attempts to evaluate an array subscript expression with
a dependent name type.

rdar://problem/23564220

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253516 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
test/Analysis/dead-stores.cpp