diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2021-12-07 17:22:29 -0800 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2022-01-11 17:33:13 -0800 |
commit | 4d04526bf48d982055fd625803734b2afded3afb (patch) | |
tree | 1991f908d5b2341d10f66ff26e9c2af06d4dbdc7 /llvm/lib/Support/MemoryBuffer.cpp | |
parent | d23fa4f2f1319039b7d939a4bf68c493ba26b07a (diff) | |
download | llvm-4d04526bf48d982055fd625803734b2afded3afb.zip llvm-4d04526bf48d982055fd625803734b2afded3afb.tar.gz llvm-4d04526bf48d982055fd625803734b2afded3afb.tar.bz2 |
ADT: Avoid using SmallVector::set_size() in SmallString
Update `SmallString::append()` to use `resize_for_overwrite()` instead
of `reserve()` followed by `set_size()`.
Differential Revision: https://reviews.llvm.org/D115382
Diffstat (limited to 'llvm/lib/Support/MemoryBuffer.cpp')
0 files changed, 0 insertions, 0 deletions