[llvm] 549fc0c - [ADT] Use SetVector::insert_range (NFC) (#132633)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sun Mar 23 14:59:37 PDT 2025
    
    
  
Author: Kazu Hirata
Date: 2025-03-23T14:59:33-07:00
New Revision: 549fc0c1f9e7af83b2306029b50ad8d967e08e8a
URL: https://github.com/llvm/llvm-project/commit/549fc0c1f9e7af83b2306029b50ad8d967e08e8a
DIFF: https://github.com/llvm/llvm-project/commit/549fc0c1f9e7af83b2306029b50ad8d967e08e8a.diff
LOG: [ADT] Use SetVector::insert_range (NFC) (#132633)
Added: 
    
Modified: 
    llvm/include/llvm/ADT/GenericCycleImpl.h
Removed: 
    
################################################################################
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