diff --git a/include/llvm/ADT/ilist_iterator.h b/include/llvm/ADT/ilist_iterator.h index 9e8551865261..ef532d2cf172 100644 --- a/include/llvm/ADT/ilist_iterator.h +++ b/include/llvm/ADT/ilist_iterator.h @@ -121,8 +121,6 @@ class ilist_iterator : ilist_detail::SpecificNodeAccess { return ilist_iterator(); } - void reset(pointer NP) { NodePtr = NP; } - // Accessors... reference operator*() const { assert(!NodePtr->isKnownSentinel()); diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index 93e1af639b4d..a4c409658bed 100644 --- a/include/llvm/IR/IRBuilder.h +++ b/include/llvm/IR/IRBuilder.h @@ -114,7 +114,7 @@ class IRBuilderBase { /// inserted into a block. void ClearInsertionPoint() { BB = nullptr; - InsertPt.reset(nullptr); + InsertPt = BasicBlock::iterator(); } BasicBlock *GetInsertBlock() const { return BB; }