summaryrefslogtreecommitdiff
path: root/bolt/tools
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2022-05-31 16:13:23 +0800
committerYi Kong <yikong@google.com>2022-05-31 16:16:38 +0800
commit97715104c5f52c19d14b6be368f3cbb95073287f (patch)
tree5c57bcd9f531fb52b537209cb8269902d595c56c /bolt/tools
parentd86108802490f66eaa8a9075da777609c1539abd (diff)
downloadllvm-97715104c5f52c19d14b6be368f3cbb95073287f.tar.gz
[BOLT][NFC] Don't over-specify the size of SmallVector
This is the recommended way, should make merging profiles ever so slightly faster.
Diffstat (limited to 'bolt/tools')
-rw-r--r--bolt/tools/merge-fdata/merge-fdata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bolt/tools/merge-fdata/merge-fdata.cpp b/bolt/tools/merge-fdata/merge-fdata.cpp
index d0764646b0ae..b28ac91e1d55 100644
--- a/bolt/tools/merge-fdata/merge-fdata.cpp
+++ b/bolt/tools/merge-fdata/merge-fdata.cpp
@@ -265,7 +265,7 @@ void mergeLegacyProfiles(const cl::list<std::string> &Filenames) {
"cannot mix profile collected in BOLT and non-BOLT deployments");
}
- SmallVector<StringRef, 10> Lines;
+ SmallVector<StringRef> Lines;
SplitString(Buf, Lines, "\n");
for (StringRef Line : Lines) {
size_t Pos = Line.rfind(" ");