[llvm] r279522 - Work around PR29097 to get the module bots going again.

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 23 08:39:00 PDT 2016


Author: adrian
Date: Tue Aug 23 10:38:59 2016
New Revision: 279522

URL: http://llvm.org/viewvc/llvm-project?rev=279522&view=rev
Log:
Work around PR29097 to get the module bots going again.
This replaces an =default constructor with an explicit definition.

Modified:
    llvm/trunk/include/llvm/ADT/ilist.h

Modified: llvm/trunk/include/llvm/ADT/ilist.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ilist.h?rev=279522&r1=279521&r2=279522&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ilist.h (original)
+++ llvm/trunk/include/llvm/ADT/ilist.h Tue Aug 23 10:38:59 2016
@@ -171,7 +171,7 @@ public:
   typedef node_type &node_reference;
 
 private:
-  node_pointer NodePtr = nullptr;
+  node_pointer NodePtr;
 
 public:
   /// Create from an ilist_node.
@@ -179,7 +179,7 @@ public:
 
   explicit ilist_iterator(pointer NP) : NodePtr(NP) {}
   explicit ilist_iterator(reference NR) : NodePtr(&NR) {}
-  ilist_iterator() = default;
+  ilist_iterator() : NodePtr(nullptr) {}
 
   // This is templated so that we can allow constructing a const iterator from
   // a nonconst iterator...




More information about the llvm-commits mailing list