diff options
author | Gabor Horvath <xazax.hun@gmail.com> | 2017-12-20 16:55:41 +0000 |
---|---|---|
committer | Gabor Horvath <xazax.hun@gmail.com> | 2017-12-20 16:55:41 +0000 |
commit | 53b5c13b9d83ab2d7459fd42f13493231f078e66 (patch) | |
tree | bc8ac529254bcdc7ab0b89725654e9111a6e898c /clang/lib/Basic/Diagnostic.cpp | |
parent | 1f8647d1c1c651d041c1693bc48861968e6e2b1b (diff) | |
download | bcm5719-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.cpp | 2 |
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. |