[PATCH] D49956: [ADT] Add an early-increment iterator and range adaptor.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 1 11:59:24 PDT 2018


dblaikie accepted this revision.
dblaikie added a comment.
This revision is now accepted and ready to land.

Fair enough. An algorithm has issues with break/continue (well, continue can be easily transformed to 'return', though that can hinder readability, especially for long loop bodies where it's not immediately obvious that the return is from a lambda, rather than from the function as a whole) that this won't. Hopefully the assertions are enough to catch any particularly weird usage.


Repository:
  rL LLVM

https://reviews.llvm.org/D49956





More information about the llvm-commits mailing list