]> granicus.if.org Git - clang/commit
[analyzer] When creating a trimmed graph, preserve whether a node is a sink.
authorJordan Rose <jordan_rose@apple.com>
Sat, 6 Apr 2013 01:42:02 +0000 (01:42 +0000)
committerJordan Rose <jordan_rose@apple.com>
Sat, 6 Apr 2013 01:42:02 +0000 (01:42 +0000)
commit3e5ebf1a05603e08f2d0b2b2a5fa9406fe4cfb22
treeac5bba7bb728e9d8cd4f0931f6e82db5e67e6cd4
parentecc271fefd51d825df81d78549b60037f67f0224
[analyzer] When creating a trimmed graph, preserve whether a node is a sink.

This is important because sometimes two nodes are identical, except the
second one is a sink.

This bug has probably been around for a while, but it wouldn't have been an
issue in the old report graph algorithm. I'm ashamed to say I actually looked
at this the first time around and thought it would never be a problem...and
then didn't include an assertion to back that up.

PR15684

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178944 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/BugReporter.cpp
test/Analysis/misc-ps.c