ilist_iterator::reset was unnecessary API, and wasn't any clearer (or
safer) at the call site than constructing a temporary and assigning it
to the iterator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281175
91177308-0d34-0410-b5e6-
96231b3b80d8
return ilist_iterator<OptionsT, IsReverse, false>();
}
- void reset(pointer NP) { NodePtr = NP; }
-
// Accessors...
reference operator*() const {
assert(!NodePtr->isKnownSentinel());
/// inserted into a block.
void ClearInsertionPoint() {
BB = nullptr;
- InsertPt.reset(nullptr);
+ InsertPt = BasicBlock::iterator();
}
BasicBlock *GetInsertBlock() const { return BB; }