summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Diagnostic.cpp
diff options
context:
space:
mode:
authorGabor Horvath <xazax.hun@gmail.com>2017-12-20 16:55:41 +0000
committerGabor Horvath <xazax.hun@gmail.com>2017-12-20 16:55:41 +0000
commit53b5c13b9d83ab2d7459fd42f13493231f078e66 (patch)
treebc8ac529254bcdc7ab0b89725654e9111a6e898c /clang/lib/Basic/Diagnostic.cpp
parent1f8647d1c1c651d041c1693bc48861968e6e2b1b (diff)
downloadbcm5719-llvm-53b5c13b9d83ab2d7459fd42f13493231f078e66.tar.gz
bcm5719-llvm-53b5c13b9d83ab2d7459fd42f13493231f078e66.zip
Make DiagnosticIDs::getAllDiagnostics use std::vector. NFC.
The size of the result vector is currently around 4600 with Flavor::WarningOrError, which makes std::vector a better candidate than llvm::SmallVector. Patch by: Andras Leitereg! Differential Revision: https://reviews.llvm.org/D39372 llvm-svn: 321190
Diffstat (limited to 'clang/lib/Basic/Diagnostic.cpp')
-rw-r--r--clang/lib/Basic/Diagnostic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp
index 640b42c1ca2..26baa838f8c 100644
--- a/clang/lib/Basic/Diagnostic.cpp
+++ b/clang/lib/Basic/Diagnostic.cpp
@@ -363,7 +363,7 @@ void DiagnosticsEngine::setSeverityForAll(diag::Flavor Flavor,
diag::Severity Map,
SourceLocation Loc) {
// Get all the diagnostics.
- SmallVector<diag::kind, 64> AllDiags;
+ std::vector<diag::kind> AllDiags;
DiagnosticIDs::getAllDiagnostics(Flavor, AllDiags);
// Set the mapping.
OpenPOWER on IntegriCloud