]> granicus.if.org Git - clang/commit
[analyzer] Look for calls along with lvalue nodes in trackNullOrUndefValue.
authorJordan Rose <jordan_rose@apple.com>
Mon, 11 Mar 2013 21:31:46 +0000 (21:31 +0000)
committerJordan Rose <jordan_rose@apple.com>
Mon, 11 Mar 2013 21:31:46 +0000 (21:31 +0000)
commit77b72231a0316509cc939b052be35fafce606567
tree8292387c3649a156dbe64037bc42f44f085b272e
parentebf0f43f07e2fdc0e35554afb38f41c8be314b02
[analyzer] Look for calls along with lvalue nodes in trackNullOrUndefValue.

r176737 fixed bugreporter::trackNullOrUndefValue to find nodes for an lvalue
even if the rvalue node had already been collected. This commit extends that
to call statement nodes as well, so that if a call is contained within
implicit casts we can still track the return value.

No test case because node reclamation is extremely finicky (dependent on
how the AST and CFG are built, and then on our current reclamation rules,
and /then/ on how many nodes were generated by the analyzer core and the
current set of checkers). I consider this a low-risk change, though, and
it will only happen in cases of reclamation when the rvalue node isn't
available.

<rdar://problem/13340764>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176829 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/BugReporterVisitors.cpp