[llvm] [ADT] Use SetVector::insert_range (NFC) (PR #132633)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 23 13:09:10 PDT 2025
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/132633
None
>From 556df02f658bc8014c1a1773049338f82e3f4a1e Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Sun, 23 Mar 2025 12:07:48 -0700
Subject: [PATCH] [ADT] Use SetVector::insert_range (NFC)
---
llvm/include/llvm/ADT/GenericCycleImpl.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/include/llvm/ADT/GenericCycleImpl.h b/llvm/include/llvm/ADT/GenericCycleImpl.h
index 4b2e01bcd9c53..40390789e2deb 100644
--- a/llvm/include/llvm/ADT/GenericCycleImpl.h
+++ b/llvm/include/llvm/ADT/GenericCycleImpl.h
@@ -299,7 +299,7 @@ void GenericCycleInfo<ContextT>::moveTopLevelCycleToNewParent(CycleT *NewParent,
CurrentContainer.pop_back();
Child->ParentCycle = NewParent;
- NewParent->Blocks.insert(Child->block_begin(), Child->block_end());
+ NewParent->Blocks.insert_range(Child->blocks());
for (auto &It : BlockMapTopLevel)
if (It.second == Child)
More information about the llvm-commits
mailing list