Hide type trait from r278532 from MSVC

The fixup from r278537 was insufficient.  Just #ifdef it out for MSVC.

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

View File

@ -390,8 +390,12 @@ template<typename NodeTy> struct simplify_type<const ilist_iterator<NodeTy> > {
///
template <typename NodeTy, typename Traits = ilist_traits<NodeTy>>
class iplist : public Traits, ilist_node_access {
#if !defined(_MSC_VER)
// FIXME: This fails in MSVC, but it's worth keeping around to help
// non-Windows users root out bugs in their ilist_traits.
static_assert(!ilist_detail::HasGetNext<Traits, NodeTy>::value,
"ilist next and prev links are not customizable!");
#endif
mutable NodeTy *Head;