diff --git a/include/Support/ilist b/include/Support/ilist index a5c5c6b4452..26a2a2569ba 100644 --- a/include/Support/ilist +++ b/include/Support/ilist @@ -82,6 +82,7 @@ public: typedef size_t size_type; ilist_iterator(pointer NP) : NodePtr(NP) {} + ilist_iterator(reference NR) : NodePtr(&NR) {} ilist_iterator() : NodePtr(0) {} // This is templated so that we can allow constructing a const iterator from diff --git a/include/llvm/ADT/ilist b/include/llvm/ADT/ilist index a5c5c6b4452..26a2a2569ba 100644 --- a/include/llvm/ADT/ilist +++ b/include/llvm/ADT/ilist @@ -82,6 +82,7 @@ public: typedef size_t size_type; ilist_iterator(pointer NP) : NodePtr(NP) {} + ilist_iterator(reference NR) : NodePtr(&NR) {} ilist_iterator() : NodePtr(0) {} // This is templated so that we can allow constructing a const iterator from