Skip to content

Commit 356bbb0

Browse files
authored
[NFC][IR] Use auto instead of explicit type (#130351)
Preparation for CFI Index refactoring, which will fix O(N^2) in ThinLTO indexing.
1 parent c419acd commit 356bbb0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Bitcode/Reader/BitcodeReader.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8075,17 +8075,15 @@ Error ModuleSummaryIndexBitcodeReader::parseEntireSummary(unsigned ID) {
80758075
break;
80768076

80778077
case bitc::FS_CFI_FUNCTION_DEFS: {
8078-
std::set<std::string, std::less<>> &CfiFunctionDefs =
8079-
TheIndex.cfiFunctionDefs();
8078+
auto &CfiFunctionDefs = TheIndex.cfiFunctionDefs();
80808079
for (unsigned I = 0; I != Record.size(); I += 2)
80818080
CfiFunctionDefs.insert(
80828081
{Strtab.data() + Record[I], static_cast<size_t>(Record[I + 1])});
80838082
break;
80848083
}
80858084

80868085
case bitc::FS_CFI_FUNCTION_DECLS: {
8087-
std::set<std::string, std::less<>> &CfiFunctionDecls =
8088-
TheIndex.cfiFunctionDecls();
8086+
auto &CfiFunctionDecls = TheIndex.cfiFunctionDecls();
80898087
for (unsigned I = 0; I != Record.size(); I += 2)
80908088
CfiFunctionDecls.insert(
80918089
{Strtab.data() + Record[I], static_cast<size_t>(Record[I + 1])});

0 commit comments

Comments
 (0)