[llvm] 1c36226 - Reland: "[ADT] fix filter_iterator_impl::operator++"
Alex Brachet via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 7 07:47:29 PDT 2023
Author: Alex Brachet
Date: 2023-07-07T14:47:22Z
New Revision: 1c3622674807c0790aee6b7eda686c72c090614e
URL: https://github.com/llvm/llvm-project/commit/1c3622674807c0790aee6b7eda686c72c090614e
DIFF: https://github.com/llvm/llvm-project/commit/1c3622674807c0790aee6b7eda686c72c090614e.diff
LOG: Reland: "[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..6fbe2ba54fedf5 100644
--- a/llvm/include/llvm/ADT/STLExtras.h
+++ b/llvm/include/llvm/ADT/STLExtras.h
@@ -535,6 +535,16 @@ class filter_iterator_impl<WrappedIteratorT, PredicateT,
PredicateT Pred)
: BaseT(Begin, End, Pred) {}
+ filter_iterator_impl &operator++() {
+ BaseT::operator++();
+ return *this;
+ }
+
+ filter_iterator_impl &operator++(int) {
+ BaseT::operator++();
+ return *this;
+ }
+
filter_iterator_impl &operator--() {
BaseT::operator--();
findPrevValid();
More information about the llvm-commits
mailing list