aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/MemoryBuffer.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2021-12-07 17:22:34 -0800
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2022-01-11 17:01:46 -0800
commitf0b2a1a629dab17f2ea161a9281d8dc63b37a7a0 (patch)
tree9afaba5248a3845e5e55f31d0e33e3633cae36a2 /llvm/lib/Support/MemoryBuffer.cpp
parent0d1365e380b5459c1cc32a2ab5ad90a0141c95a2 (diff)
downloadllvm-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