diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-09-07 01:47:09 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-09-07 01:47:09 +0000 |
commit | 5182a1858f4483c7289997d365ba3e103cd7d1b7 (patch) | |
tree | c5d5a178e5811ee37f18189605fddabb037dd5c4 /lib/Lex/Preprocessor.cpp | |
parent | c83b975f1fb9d11e10b5aa25029ae9bb5fa80e07 (diff) |
Switch the CharSourceRange array to a small vector. The array was
a stack array of a magical size with an assert() that we never
overflowed it. That seems incredibly risky. We also have a very nice API
for bundling up a vector we expect to usually have a small size without
loss of functionality or security if the size is excessive.
The fallout is to remove the last pointer+size parameter pair that are
traced through the recursive caret diagnostic emission.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
0 files changed, 0 insertions, 0 deletions