Update getMemoryBufferForStream() to use resize_for_overwrite() and
truncate() instead of reserve() and set_size().
Blocker for https://reviews.llvm.org/D115380; depends on https://reviews.llvm.org/D115383.
Paths
| Differential D115384
Support: Avoid using SmallVector::set_size() in MemoryBuffer ClosedPublic Authored by dexonsmith on Dec 8 2021, 12:56 PM.
Details Summary Update getMemoryBufferForStream() to use resize_for_overwrite() and Blocker for https://reviews.llvm.org/D115380; depends on https://reviews.llvm.org/D115383.
Diff Detail
Event Timelinedexonsmith added a parent revision: D115383: ADT: Add SmallVectorImpl::truncate() to replace uses of set_size().Dec 8 2021, 12:56 PM Comment Actions
(edit: that was intended for a different Phab review...) This revision is now accepted and ready to land.Dec 9 2021, 12:03 PM This revision was landed with ongoing or failed builds.Dec 9 2021, 6:45 PM Closed by commit rG1131738698c4: Support: Avoid using SmallVector::set_size() in MemoryBuffer (authored by dexonsmith). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 393362 llvm/lib/Support/MemoryBuffer.cpp
|