From 7459fad141a69bf71261d7db50105f9a55a8c28c Mon Sep 17 00:00:00 2001 From: Russell Sears Date: Thu, 23 Apr 2020 14:05:59 -0700 Subject: [PATCH] pr comment: restore assert --- flow/IndexedSet.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/flow/IndexedSet.h b/flow/IndexedSet.h index 2f4906acbf..070c136c3d 100644 --- a/flow/IndexedSet.h +++ b/flow/IndexedSet.h @@ -874,6 +874,8 @@ void IndexedSet::erase( typename IndexedSet::iterator begin, // Removes all nodes in the set between first and last, inclusive. // toFree is extended with the roots of completely removed subtrees. + ASSERT(!end.i || (begin.i && *begin <= *end)); + if(begin == end) return;