[PATCH] D102679: [llvm] Make Sequence reverse-iterable

Guillaume Chatelet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 18 03:11:13 PDT 2021


gchatelet created this revision.
gchatelet added a reviewer: courbet.
Herald added a subscriber: dexonsmith.
gchatelet requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch simplifies the implementation of Sequence and makes it compatible with llvm::reverse.
It exposes the reverse iterators through rbegin/rend which prevents a dangling reference in std::reverse_iterator::operator++().


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102679

Files:
  llvm/include/llvm/ADT/Sequence.h
  llvm/unittests/ADT/SequenceTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102679.346090.patch
Type: text/x-patch
Size: 5077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210518/92c19704/attachment.bin>


More information about the llvm-commits mailing list