Skip to content

Commit 602855c

Browse files
adrian-prantlbob-wilson
authored andcommitted
Work around PR29097 to get the module bots going again.
This replaces an =default constructor with an explicit definition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279522 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit 20885de)
1 parent bd6a984 commit 602855c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/llvm/ADT/ilist.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,15 @@ class ilist_iterator
171171
typedef node_type &node_reference;
172172

173173
private:
174-
node_pointer NodePtr = nullptr;
174+
node_pointer NodePtr;
175175

176176
public:
177177
/// Create from an ilist_node.
178178
explicit ilist_iterator(node_reference N) : NodePtr(&N) {}
179179

180180
explicit ilist_iterator(pointer NP) : NodePtr(NP) {}
181181
explicit ilist_iterator(reference NR) : NodePtr(&NR) {}
182-
ilist_iterator() = default;
182+
ilist_iterator() : NodePtr(nullptr) {}
183183

184184
// This is templated so that we can allow constructing a const iterator from
185185
// a nonconst iterator...

0 commit comments

Comments
 (0)