aboutsummaryrefslogtreecommitdiff
path: root/lib/Index/DeclReferenceMap.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-03-08 23:30:56 +0000
committerJordan Rose <jordan_rose@apple.com>2013-03-08 23:30:56 +0000
commit0183768813658d419e3124b576744b03ec8e9b55 (patch)
tree8f09ac20465812e36df5ac411ff959bce87cb893 /lib/Index/DeclReferenceMap.cpp
parent8c84707fd0fbe9f6f7d17fadd5a9fe162dff8445 (diff)
[analyzer] Look for lvalue nodes when tracking a null pointer.
r176010 introduced the notion of "interesting" lvalue expressions, whose nodes are guaranteed never to be reclaimed by the ExplodedGraph. This was used in bugreporter::trackNullOrUndefValue to find the region that contains the null or undef value being tracked. However, the /rvalue/ nodes (i.e. the loads from these lvalues that produce a null or undef value) /are/ still being reclaimed, and if we couldn't find the node for the rvalue, we just give up. This patch changes that so that we look for the node for either the rvalue or the lvalue -- preferring the former, since it lets us fall back to value-only tracking in cases where we can't get a region, but allowing the latter as well. <rdar://problem/13342842> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index/DeclReferenceMap.cpp')
0 files changed, 0 insertions, 0 deletions