[all-commits] [llvm/llvm-project] 7df185: Support: Avoid using SmallVector::set_size() in sy...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Wed Dec 8 16:22:59 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7df18557791ea1cf8f4f55d97d47ff5008f3bbbb
      https://github.com/llvm/llvm-project/commit/7df18557791ea1cf8f4f55d97d47ff5008f3bbbb
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2021-12-08 (Wed, 08 Dec 2021)

  Changed paths:
    M llvm/lib/Support/Path.cpp

  Log Message:
  -----------
  Support: Avoid using SmallVector::set_size() in sys::path

Stop using `SmallVector::set_size()` in sys::path APIs. In both cases,
use `truncate()` instead.

Differential Revision: https://reviews.llvm.org/D115391


  Commit: cd7bc0e010a3c0b4eb349e8c9a0e7edd591a5fff
      https://github.com/llvm/llvm-project/commit/cd7bc0e010a3c0b4eb349e8c9a0e7edd591a5fff
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2021-12-08 (Wed, 08 Dec 2021)

  Changed paths:
    M llvm/lib/Support/Compression.cpp

  Log Message:
  -----------
  Support: Avoid using SmallVector::set_size() in zlib

Stop using `SmallVector::set_size()` in zlib. Replace pairs of
`reserve()` / `set_size()` with `resize_for_overwrite()` and
`truncate()`.

Differential Revision: https://reviews.llvm.org/D115391


Compare: https://github.com/llvm/llvm-project/compare/3f3faa36ff3d...cd7bc0e010a3


More information about the All-commits mailing list