It is allowed to call IntervalMap::const_iterator::advanceTo() with a key that
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 17 Dec 2010 22:07:51 +0000 (22:07 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 17 Dec 2010 22:07:51 +0000 (22:07 +0000)
commit5049ee5b11fe55e5a553b5388406aab874717672
tree6261142b70a9c2000858a73d350a2cada04a9708
parent175fb36f101a20df10db90bfe4d0c44a7d05325b
It is allowed to call IntervalMap::const_iterator::advanceTo() with a key that
moves the iterator to end(), and it is valid to call it on end().

That means it is valid to call advanceTo() with any monotonic key sequence.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122092 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/IntervalMap.h
unittests/ADT/IntervalMapTest.cpp