[all-commits] [llvm/llvm-project] 4d0452: ADT: Avoid using SmallVector::set_size() in SmallS...
Duncan P. N. Exon Smith via All-commits
all-commits at lists.llvm.org
Tue Jan 11 17:38:14 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4d04526bf48d982055fd625803734b2afded3afb
https://github.com/llvm/llvm-project/commit/4d04526bf48d982055fd625803734b2afded3afb
Author: Duncan P. N. Exon Smith <dexonsmith at apple.com>
Date: 2022-01-11 (Tue, 11 Jan 2022)
Changed paths:
M llvm/include/llvm/ADT/SmallString.h
Log Message:
-----------
ADT: Avoid using SmallVector::set_size() in SmallString
Update `SmallString::append()` to use `resize_for_overwrite()` instead
of `reserve()` followed by `set_size()`.
Differential Revision: https://reviews.llvm.org/D115382
More information about the All-commits
mailing list