[llvm] 356bbb0 - [NFC][IR] Use auto instead of explicit type (#130351)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 7 14:47:27 PST 2025
Author: Vitaly Buka
Date: 2025-03-07T14:47:24-08:00
New Revision: 356bbb0b2527ba929ac239596b361d257a411d2a
URL: https://github.com/llvm/llvm-project/commit/356bbb0b2527ba929ac239596b361d257a411d2a
DIFF: https://github.com/llvm/llvm-project/commit/356bbb0b2527ba929ac239596b361d257a411d2a.diff
LOG: [NFC][IR] Use auto instead of explicit type (#130351)
Preparation for CFI Index refactoring,
which will fix O(N^2) in ThinLTO indexing.
Added:
Modified:
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index e4dc7d6ed86b0..9ff890a40eb54 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -8075,8 +8075,7 @@ Error ModuleSummaryIndexBitcodeReader::parseEntireSummary(unsigned ID) {
break;
case bitc::FS_CFI_FUNCTION_DEFS: {
- std::set<std::string, std::less<>> &CfiFunctionDefs =
- TheIndex.cfiFunctionDefs();
+ auto &CfiFunctionDefs = TheIndex.cfiFunctionDefs();
for (unsigned I = 0; I != Record.size(); I += 2)
CfiFunctionDefs.insert(
{Strtab.data() + Record[I], static_cast<size_t>(Record[I + 1])});
@@ -8084,8 +8083,7 @@ Error ModuleSummaryIndexBitcodeReader::parseEntireSummary(unsigned ID) {
}
case bitc::FS_CFI_FUNCTION_DECLS: {
- std::set<std::string, std::less<>> &CfiFunctionDecls =
- TheIndex.cfiFunctionDecls();
+ auto &CfiFunctionDecls = TheIndex.cfiFunctionDecls();
for (unsigned I = 0; I != Record.size(); I += 2)
CfiFunctionDecls.insert(
{Strtab.data() + Record[I], static_cast<size_t>(Record[I + 1])});
More information about the llvm-commits
mailing list