Support: Avoid using SmallVector::set_size() in sys::path
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 8 Dec 2021 01:22:44 +0000 (17:22 -0800)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 9 Dec 2021 00:22:37 +0000 (16:22 -0800)
commit7df18557791ea1cf8f4f55d97d47ff5008f3bbbb
tree04caa30a6464414424b65708a501ede77913d104
parent3f3faa36ff3d84af3c3ed84772d7e4278bc44ff1
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
llvm/lib/Support/Path.cpp