[all-commits] [llvm/llvm-project] 4d4439: Support: Avoid SmallVector::set_size() in Windows ...

Duncan P. N. Exon Smith via All-commits all-commits at lists.llvm.org
Tue Jan 11 17:56:48 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d4439470eaf015784b76fc84cd5373456ce3d5c
      https://github.com/llvm/llvm-project/commit/4d4439470eaf015784b76fc84cd5373456ce3d5c
  Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
  Date:   2022-01-11 (Tue, 11 Jan 2022)

  Changed paths:
    M llvm/lib/Support/Windows/Path.inc
    M llvm/lib/Support/Windows/Process.inc
    M llvm/lib/Support/Windows/Program.inc

  Log Message:
  -----------
  Support: Avoid SmallVector::set_size() in Windows code

Replace a few `reserve()` / `set_size()` pairs with
`resize_for_overwrite()` / `truncate()` in the platform-specific
code for Windows.

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




More information about the All-commits mailing list