summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-01-30 01:27:06 +0000
committerMatthias Braun <matze@braunis.de>2016-01-30 01:27:06 +0000
commit1d0300777436cf82a2d51d34dcd34161010b7bfe (patch)
tree8f9cb3857d2c5934247b397dd3618a4564bc4c0c /clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp
parentb30f2f51410449a6d476fed5c486a4ef8fd5f912 (diff)
downloadbcm5719-llvm-1d0300777436cf82a2d51d34dcd34161010b7bfe.tar.gz
bcm5719-llvm-1d0300777436cf82a2d51d34dcd34161010b7bfe.zip
Avoid overly large SmallPtrSet/SmallSet
These sets perform linear searching in small mode so it is never a good idea to use SmallSize/N bigger than 32. Differential Revision: http://reviews.llvm.org/D16705 llvm-svn: 259284
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp
index a052d83f5af..64c30e7a82c 100644
--- a/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp
@@ -43,7 +43,7 @@ void AnalyzerStatsChecker::checkEndAnalysis(ExplodedGraph &G,
ExprEngine &Eng) const {
const CFG *C = nullptr;
const SourceManager &SM = B.getSourceManager();
- llvm::SmallPtrSet<const CFGBlock*, 256> reachable;
+ llvm::SmallPtrSet<const CFGBlock*, 32> reachable;
// Root node should have the location context of the top most function.
const ExplodedNode *GraphRoot = *G.roots_begin();
OpenPOWER on IntegriCloud