[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)
commit4db7c1e7e5b389c33af83768b0344ac5450c5d50
treede8b5301565b892da9ed12d9bf43fc759b5d837e
parent7caf2fbdc3d07fd7860bf352713d96297e66092d
[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

llvm-svn: 178944
clang/lib/StaticAnalyzer/Core/BugReporter.cpp
clang/test/Analysis/misc-ps.c