[all-commits] [llvm/llvm-project] 113173: Support: Avoid using SmallVector::set_size() in Me...
Duncan P. N. Exon Smith via All-commits
all-commits at lists.llvm.org
Thu Dec 9 18:45:25 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1131738698c49b194be278da3a2a21a7eaa915a9
https://github.com/llvm/llvm-project/commit/1131738698c49b194be278da3a2a21a7eaa915a9
Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
Date: 2021-12-09 (Thu, 09 Dec 2021)
Changed paths:
M llvm/lib/Support/MemoryBuffer.cpp
Log Message:
-----------
Support: Avoid using SmallVector::set_size() in MemoryBuffer
Update getMemoryBufferForStream() to use `resize_for_overwrite()` and
`truncate()` instead of `reserve()` and `set_size()`.
Differential Revision: https://reviews.llvm.org/D115384
More information about the All-commits
mailing list