[llvm] 5a67fa2 - [ADT] fix filter_iterator_impl::operator++
Alex Brachet via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 7 06:51:07 PDT 2023
Author: Alex Brachet
Date: 2023-07-07T13:50:59Z
New Revision: 5a67fa2b17c4db64ef00fbe672a4b59d26039828
URL: https://github.com/llvm/llvm-project/commit/5a67fa2b17c4db64ef00fbe672a4b59d26039828
DIFF: https://github.com/llvm/llvm-project/commit/5a67fa2b17c4db64ef00fbe672a4b59d26039828.diff
LOG: [ADT] fix filter_iterator_impl::operator++
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 7edc582636c772..cff30d4483d1d7 100644
--- a/llvm/include/llvm/ADT/STLExtras.h
+++ b/llvm/include/llvm/ADT/STLExtras.h
@@ -535,6 +535,11 @@ 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