]> granicus.if.org Git - clang/commitdiff
Disable path pruning for UndefResultChecker. It turns out we usually want to see...
authorTed Kremenek <kremenek@apple.com>
Wed, 6 Jun 2012 06:25:37 +0000 (06:25 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 6 Jun 2012 06:25:37 +0000 (06:25 +0000)
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

lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp

index c3c9ed72345e890cbf808d0631a9430b49df2728..a27fa1dcbec891b5329693ee00848fd986a51da9 100644 (file)
@@ -82,6 +82,8 @@ void UndefResultChecker::checkPostStmt(const BinaryOperator *B,
     else
       report->addVisitor(bugreporter::getTrackNullOrUndefValueVisitor(N, B,
                                                                       report));
+    
+    report->disablePathPruning();
     C.EmitReport(report);
   }
 }