[llvm] 85a68c3 - Revert "[ADT] fix filter_iterator_impl::operator++"

Alex Brachet via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 7 07:04:14 PDT 2023


Author: Alex Brachet
Date: 2023-07-07T14:03:58Z
New Revision: 85a68c3c58b8a81827ba80e149ad80d1910e7c8f

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

LOG: Revert "[ADT] fix filter_iterator_impl::operator++"

This reverts commit 5a67fa2b17c4db64ef00fbe672a4b59d26039828.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h
index cff30d4483d1d7..7edc582636c772 100644
--- a/llvm/include/llvm/ADT/STLExtras.h
+++ b/llvm/include/llvm/ADT/STLExtras.h
@@ -535,11 +535,6 @@ class filter_iterator_impl<WrappedIteratorT, PredicateT,
                        PredicateT Pred)
       : BaseT(Begin, End, Pred) {}
 
-  filter_iterator_impl &operator++() {
-    BaseT::operator++();
-    return *this;
-  }
-
   filter_iterator_impl &operator--() {
     BaseT::operator--();
     findPrevValid();


        


More information about the llvm-commits mailing list