Try to appease win7 bots after r278532 by cleaning up type trait
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 12 Aug 2016 17:54:54 +0000 (17:54 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 12 Aug 2016 17:54:54 +0000 (17:54 +0000)
The HasGetNext type trait was cluttered with a few things it didn't
need.  Try to clean it up, hoping to fix windows bots:
  http://lab.llvm.org:8011/builders/lld-x86_64-win7/builds/38063

I may just have to delete the trait...

llvm-svn: 278537

llvm/include/llvm/ADT/ilist.h

index 95027f0..43429e9 100644 (file)
@@ -96,14 +96,13 @@ template <class TraitsT, class NodeT> struct HasGetNext {
   typedef char No[2];
   template <size_t N> struct SFINAE {};
 
-  template <class U, class V>
+  template <class U>
   static Yes &hasGetNext(
       SFINAE<sizeof(static_cast<NodeT *>(make<U>().getNext(&make<NodeT>())))>
           * = 0);
-  template <class U, class V> static No &hasGetNext(...);
+  template <class U> static No &hasGetNext(...);
 
-  static const bool value =
-      sizeof(hasGetNext<TraitsT, NodeT>(nullptr)) == sizeof(Yes);
+  static const bool value = sizeof(hasGetNext<TraitsT>(nullptr)) == sizeof(Yes);
 };
 
 } // end namespace ilist_detail