r215369 - Increase the size of two SmallVectors in Generic_GCC::GCCInstallationDetector::init
Hans Wennborg
hans at hanshq.net
Mon Aug 11 11:09:29 PDT 2014
Author: hans
Date: Mon Aug 11 13:09:28 2014
New Revision: 215369
URL: http://llvm.org/viewvc/llvm-project?rev=215369&view=rev
Log:
Increase the size of two SmallVectors in Generic_GCC::GCCInstallationDetector::init
In a bootstrap build of Clang, the size was always greater than 12.
Modified:
cfe/trunk/lib/Driver/ToolChains.cpp
Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=215369&r1=215368&r2=215369&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Mon Aug 11 13:09:28 2014
@@ -1220,8 +1220,8 @@ Generic_GCC::GCCInstallationDetector::in
// The library directories which may contain GCC installations.
SmallVector<StringRef, 4> CandidateLibDirs, CandidateBiarchLibDirs;
// The compatible GCC triples for this particular architecture.
- SmallVector<StringRef, 10> CandidateTripleAliases;
- SmallVector<StringRef, 10> CandidateBiarchTripleAliases;
+ SmallVector<StringRef, 16> CandidateTripleAliases;
+ SmallVector<StringRef, 16> CandidateBiarchTripleAliases;
CollectLibDirsAndTriples(TargetTriple, BiarchVariantTriple, CandidateLibDirs,
CandidateTripleAliases, CandidateBiarchLibDirs,
CandidateBiarchTripleAliases);
More information about the cfe-commits
mailing list