aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTO.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-03-22 22:14:45 -0700
committerGitHub <noreply@github.com>2025-03-22 22:14:45 -0700
commitfae34938f6bb1aa1f18d6e285c50f05ef04b021e (patch)
tree9438b7c25d43dfbb5aa01c8346fa0ae5c431892b /llvm/lib/LTO/LTO.cpp
parent00cb966209955878cee903068333d4d2d4f7b259 (diff)
downloadllvm-fae34938f6bb1aa1f18d6e285c50f05ef04b021e.zip
llvm-fae34938f6bb1aa1f18d6e285c50f05ef04b021e.tar.gz
llvm-fae34938f6bb1aa1f18d6e285c50f05ef04b021e.tar.bz2
[llvm] Use *Set::insert_range (NFC) (#132591)
DenseSet, SmallPtrSet, SmallSet, SetVector, and StringSet recently gained C++23-style insert_range. This patch uses insert_range with iterator ranges. For each case, I've verified that foos is defined as make_range(foo_begin(), foo_end()) or in a similar manner.
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r--llvm/lib/LTO/LTO.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index b12be4a..97d23fe 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -1439,9 +1439,9 @@ public:
AddStream(std::move(AddStream)), Cache(std::move(Cache)),
ShouldEmitIndexFiles(ShouldEmitIndexFiles) {
auto &Defs = CombinedIndex.cfiFunctionDefs();
- CfiFunctionDefs.insert(Defs.guid_begin(), Defs.guid_end());
+ CfiFunctionDefs.insert_range(Defs.guids());
auto &Decls = CombinedIndex.cfiFunctionDecls();
- CfiFunctionDecls.insert(Decls.guid_begin(), Decls.guid_end());
+ CfiFunctionDecls.insert_range(Decls.guids());
}
virtual Error runThinLTOBackendThread(