aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-06-06 06:25:37 +0000
committerTed Kremenek <kremenek@apple.com>2012-06-06 06:25:37 +0000
commitce56fd3d6ddf3f1b7ae1a3ca3dd4a8768222594c (patch)
tree04bec29f329aa0486d236a752564862875e29134 /lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp
parent113c4448003ff6fd76eaabde08d3ebfffd8a327a (diff)
Disable path pruning for UndefResultChecker. It turns out we usually want to see more of the path
to discover how a value was used uninitialized. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@158048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp')
-rw-r--r--lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp b/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp
index c3c9ed7234..a27fa1dcbe 100644
--- a/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp
+++ b/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp
@@ -82,6 +82,8 @@ void UndefResultChecker::checkPostStmt(const BinaryOperator *B,
else
report->addVisitor(bugreporter::getTrackNullOrUndefValueVisitor(N, B,
report));
+
+ report->disablePathPruning();
C.EmitReport(report);
}
}