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.
llvm-svn: 281175
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; }