From 556df02f658bc8014c1a1773049338f82e3f4a1e Mon Sep 17 00:00:00 2001 From: Kazu Hirata 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::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)