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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278537 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2016-08-12 17:54:54 +00:00
parent fa2e422f92
commit a33b92eb82

View 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