[llvm] bf5550b - [ADT] Fix signature of StringSet::insert

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 6 15:48:51 PDT 2022


Author: Fangrui Song
Date: 2022-08-06T22:48:41Z
New Revision: bf5550b6790b5873f75db010db158cdae84deecc

URL: https://github.com/llvm/llvm-project/commit/bf5550b6790b5873f75db010db158cdae84deecc
DIFF: https://github.com/llvm/llvm-project/commit/bf5550b6790b5873f75db010db158cdae84deecc.diff

LOG: [ADT] Fix signature of StringSet::insert

to match StringMap and unordered_set.

Added: 
    

Modified: 
    llvm/include/llvm/ADT/StringSet.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/StringSet.h b/llvm/include/llvm/ADT/StringSet.h
index 4a499463d9839..ed8a7e6073d78 100644
--- a/llvm/include/llvm/ADT/StringSet.h
+++ b/llvm/include/llvm/ADT/StringSet.h
@@ -36,7 +36,7 @@ class StringSet : public StringMap<NoneType, AllocatorTy> {
   }
 
   template <typename InputIt>
-  void insert(const InputIt &begin, const InputIt &end) {
+  void insert(InputIt begin, InputIt end) {
     for (auto it = begin; it != end; ++it)
       insert(*it);
   }


        


More information about the llvm-commits mailing list