commit | b85cce094887ab5cf1c47acfe306e2fb1d3cfbb1 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Thu Oct 25 22:07:10 2012 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Thu Oct 25 22:07:10 2012 +0000 |
tree | f11b2d3d2ec02167589f6f25ceca677631441527 | |
parent | 0848333c398d1ddd9f4e3b60cccef6a1b2698f78 [diff] |
TrackConstraintBRVisitor and ConditionBRVisitor can emit similar path notes for cases where a value may be assumed to be null, etc. Instead of having redundant diagnostics, do a pass over the generated PathDiagnostic pieces and remove notes from TrackConstraintBRVisitor that are already covered by ConditionBRVisitor, whose notes tend to be better. Fixes <rdar://problem/12252783> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166728 91177308-0d34-0410-b5e6-96231b3b80d8