diff options
author | Yi Kong <yikong@google.com> | 2022-05-31 16:13:23 +0800 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2022-05-31 16:16:38 +0800 |
commit | 97715104c5f52c19d14b6be368f3cbb95073287f (patch) | |
tree | 5c57bcd9f531fb52b537209cb8269902d595c56c /bolt/tools | |
parent | d86108802490f66eaa8a9075da777609c1539abd (diff) | |
download | llvm-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.cpp | 2 |
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(" "); |