mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-07 04:17:21 +00:00
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:
parent
1735568d2e
commit
bc1fa10506
@ -121,8 +121,6 @@ public:
|
||||
return ilist_iterator<OptionsT, IsReverse, false>();
|
||||
}
|
||||
|
||||
void reset(pointer NP) { NodePtr = NP; }
|
||||
|
||||
// Accessors...
|
||||
reference operator*() const {
|
||||
assert(!NodePtr->isKnownSentinel());
|
||||
|
@ -114,7 +114,7 @@ public:
|
||||
/// inserted into a block.
|
||||
void ClearInsertionPoint() {
|
||||
BB = nullptr;
|
||||
InsertPt.reset(nullptr);
|
||||
InsertPt = BasicBlock::iterator();
|
||||
}
|
||||
|
||||
BasicBlock *GetInsertBlock() const { return BB; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user