[llvm] r278537 - Try to appease win7 bots after r278532 by cleaning up type trait

Duncan P. N. Exon Smith via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 12 10:54:55 PDT 2016


Author: dexonsmith
Date: Fri Aug 12 12:54:54 2016
New Revision: 278537

URL: http://llvm.org/viewvc/llvm-project?rev=278537&view=rev
Log:
Try to appease win7 bots after r278532 by cleaning up type trait

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...

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=278537&r1=278536&r2=278537&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ilist.h (original)
+++ llvm/trunk/include/llvm/ADT/ilist.h Fri Aug 12 12:54:54 2016
@@ -96,14 +96,13 @@ template <class TraitsT, class NodeT> st
   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




More information about the llvm-commits mailing list