summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-07-04 03:08:24 +0000
committerCraig Topper <craig.topper@gmail.com>2013-07-04 03:08:24 +0000
commit2341c0d3b2aedbb090c3769dc44b3c403d46f9e9 (patch)
tree8fdfccfc9bc4eadda9498ef660b36f06dc75040f /clang/lib/StaticAnalyzer/Core/BugReporter.cpp
parenta42fb525e43ba27f82d361236d47811b3d1073de (diff)
downloadbcm5719-llvm-2341c0d3b2aedbb090c3769dc44b3c403d46f9e9.tar.gz
bcm5719-llvm-2341c0d3b2aedbb090c3769dc44b3c403d46f9e9.zip
Use SmallVectorImpl instead of SmallVector for iterators and references to avoid specifying the vector size unnecessarily.
llvm-svn: 185610
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/BugReporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
index 6b110ad28ba..912d5c501d6 100644
--- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
+++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
@@ -2743,7 +2743,7 @@ void BugReporter::FlushReports() {
SmallVector<const BugType*, 16> bugTypes;
for (BugTypesTy::iterator I=BugTypes.begin(), E=BugTypes.end(); I!=E; ++I)
bugTypes.push_back(*I);
- for (SmallVector<const BugType*, 16>::iterator
+ for (SmallVectorImpl<const BugType *>::iterator
I = bugTypes.begin(), E = bugTypes.end(); I != E; ++I)
const_cast<BugType*>(*I)->FlushReports(*this);
OpenPOWER on IntegriCloud