https://github.com/NagyDonat approved this pull request. LGTM assuming that you checked that these iterators are only used in a single-pass iteration and only compared against the end pointer. https://github.com/llvm/llvm-project/pull/244865