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:41 -0800
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2022-01-11 17:57:23 -0800
commitb0492d92adc53ca2b6a6bae16f4fae85e5396ff2 (patch)
tree8b99f5f629955c648ee20cfe2c18979e570d1b51 /llvm/lib/Support/MemoryBuffer.cpp
parent4d4439470eaf015784b76fc84cd5373456ce3d5c (diff)
downloadllvm-b0492d92adc53ca2b6a6bae16f4fae85e5396ff2.zip
llvm-b0492d92adc53ca2b6a6bae16f4fae85e5396ff2.tar.gz
llvm-b0492d92adc53ca2b6a6bae16f4fae85e5396ff2.tar.bz2
Support: Avoid SmallVector::set_size() in Unix code
Replace a `reserve()`/`set_size()` pair with `resize_for_overwrite()` and `truncate()`. The out parameter also needs a `clear()` call on the error path. Differential Revision: https://reviews.llvm.org/D115389
Diffstat (limited to 'llvm/lib/Support/MemoryBuffer.cpp')
0 files changed, 0 insertions, 0 deletions