forked from OSchip/llvm-project
SmallVectorize a critical vector.
The small number of elements was determined by taking the median file length in clang+llvm and /usr/include on OS X with xcode installed. llvm-svn: 134496
This commit is contained in:
parent
30c80fa3eb
commit
37d30835f0
|
@ -917,7 +917,7 @@ static void ComputeLineNumbers(Diagnostic &Diag, ContentCache *FI,
|
|||
|
||||
// Find the file offsets of all of the *physical* source lines. This does
|
||||
// not look at trigraphs, escaped newlines, or anything else tricky.
|
||||
std::vector<unsigned> LineOffsets;
|
||||
llvm::SmallVector<unsigned, 256> LineOffsets;
|
||||
|
||||
// Line #1 starts at char 0.
|
||||
LineOffsets.push_back(0);
|
||||
|
|
Loading…
Reference in New Issue