Fix typo in comment.
[oota-llvm.git] / include / llvm / ADT / ilist.h
index b3824a217c74bef795bfd0d128304837b9765ed4..865fcb3d8aadc53f10e78f2d8965dd24baac2f9b 100644 (file)
@@ -38,7 +38,9 @@
 #ifndef LLVM_ADT_ILIST_H
 #define LLVM_ADT_ILIST_H
 
+#include <algorithm>
 #include <cassert>
+#include <cstddef>
 #include <iterator>
 
 namespace llvm {
@@ -613,7 +615,6 @@ public:
 
   template<class Pr3> void sort(Pr3 pred);
   void sort() { sort(op_less); }
-  void reverse();
 };
 
 
@@ -643,7 +644,7 @@ struct ilist : public iplist<NodeTy> {
 
   // Main implementation here - Insert for a node passed by value...
   iterator insert(iterator where, const NodeTy &val) {
-    return insert(where, createNode(val));
+    return insert(where, this->createNode(val));
   }