diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2021-12-07 17:22:34 -0800 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2022-01-11 17:01:46 -0800 |
commit | f0b2a1a629dab17f2ea161a9281d8dc63b37a7a0 (patch) | |
tree | 9afaba5248a3845e5e55f31d0e33e3633cae36a2 /llvm/lib/Support/MemoryBuffer.cpp | |
parent | 0d1365e380b5459c1cc32a2ab5ad90a0141c95a2 (diff) | |
download | llvm-f0b2a1a629dab17f2ea161a9281d8dc63b37a7a0.zip llvm-f0b2a1a629dab17f2ea161a9281d8dc63b37a7a0.tar.gz llvm-f0b2a1a629dab17f2ea161a9281d8dc63b37a7a0.tar.bz2 |
ASTMatchers: Avoid using SmallVector::set_size()
Update `variadicMatcherDescriptor` to assert on reserved capacity and
to call `emplace_back()` instead of calling `set_size()` and constructing
the element in-place.
Differential Revision: https://reviews.llvm.org/D115379
Diffstat (limited to 'llvm/lib/Support/MemoryBuffer.cpp')
0 files changed, 0 insertions, 0 deletions