[all-commits] [llvm/llvm-project] b0492d: Support: Avoid SmallVector::set_size() in Unix code
Duncan P. N. Exon Smith via All-commits
all-commits at lists.llvm.org
Tue Jan 11 18:00:33 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b0492d92adc53ca2b6a6bae16f4fae85e5396ff2
https://github.com/llvm/llvm-project/commit/b0492d92adc53ca2b6a6bae16f4fae85e5396ff2
Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
Date: 2022-01-11 (Tue, 11 Jan 2022)
Changed paths:
M llvm/lib/Support/Unix/Path.inc
Log Message:
-----------
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
More information about the All-commits
mailing list