[all-commits] [llvm/llvm-project] c92de2: [NFC] Add size inference to to_vector
Geoffrey Martin-Noble via All-commits
all-commits at lists.llvm.org
Thu Nov 4 09:24:17 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c92de29f8d39729678dfe2c915035e453dd83142
https://github.com/llvm/llvm-project/commit/c92de29f8d39729678dfe2c915035e453dd83142
Author: Geoffrey Martin-Noble <gcmn at google.com>
Date: 2021-11-04 (Thu, 04 Nov 2021)
Changed paths:
M llvm/include/llvm/ADT/SmallVector.h
M llvm/unittests/ADT/STLExtrasTest.cpp
Log Message:
-----------
[NFC] Add size inference to to_vector
A default calculated size for SmallVector was added in
https://reviews.llvm.org/D92522 after discussion in
https://groups.google.com/g/llvm-dev/c/Z-VwNCTRGSg, but to_vector still
requires an explicit size. This patch adds the default size to to_vector
as well, so that this case doesn't unnecessarily force users to pick an
arbitrary size.
Reviewed By: silvas, dblaikie
Differential Revision: https://reviews.llvm.org/D112968
More information about the All-commits
mailing list