[llvm] [NFC][IR] Use auto instead of explicit type (PR #130351)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 7 13:36:55 PST 2025
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/130351
Preparation for CFI Index refactoring,
which will fix O(N^2) in ThinLTO indexing.
>From 5888734438df381fe8fb99cfd7acc25e2919b2b5 Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Fri, 7 Mar 2025 13:36:39 -0800
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.4
---
llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
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