ADT: Tidy up ilist_traits static asserts, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 17 Aug 2016 23:47:56 +0000 (23:47 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 17 Aug 2016 23:47:56 +0000 (23:47 +0000)
commit56ee4f1fb786168f05c41cfeb939ba04362b2f16
treee8bc2724ca46f1cf3ea3dc612b4c11aca4adcb6d
parenta8a638292ced193f5e00dd1e087b46790cf540cb
ADT: Tidy up ilist_traits static asserts, NFC

Change the ilist traits to use decltype instead of sizeof, and add
HasObsoleteCustomization so that additions to this list don't need to be
added in two places.

I suspect this will now work with MSVC, since the trait tested in
r278991 seems to work.  If for some reason it continues to fail on
Windows I'll follow up by adding back the #ifndef _MSC_VER.

llvm-svn: 279012
llvm/include/llvm/ADT/ilist.h
llvm/unittests/ADT/ilistTest.cpp