ADT: Remove ilist_iterator::reset(), NFC

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
This commit is contained in:
Duncan P. N. Exon Smith 2016-09-11 20:47:27 +00:00
parent 1735568d2e
commit bc1fa10506
2 changed files with 1 additions and 3 deletions

View File

@ -121,8 +121,6 @@ public:
return ilist_iterator<OptionsT, IsReverse, false>();
}
void reset(pointer NP) { NodePtr = NP; }
// Accessors...
reference operator*() const {
assert(!NodePtr->isKnownSentinel());

View File

@ -114,7 +114,7 @@ public:
/// inserted into a block.
void ClearInsertionPoint() {
BB = nullptr;
InsertPt.reset(nullptr);
InsertPt = BasicBlock::iterator();
}
BasicBlock *GetInsertBlock() const { return BB; }