ADT: Allow up to 18 arguments in hash_combine()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 9 Feb 2015 23:21:05 +0000 (23:21 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 9 Feb 2015 23:21:05 +0000 (23:21 +0000)
commita9a077681df2e7456cde0ba2faa5dfc4ea5ddd6f
tree1cf03908fef130fcd95a2c7fbb039264a23f0eda
parentb9df444409e3344b8505ada72929a463409eb7bc
ADT: Allow up to 18 arguments in hash_combine()

I just realized that the specialized metadata node patch I'm about to
commit won't compile on old compilers.  Bump `hash_combine()`'s support
for non-variadic templates to 18 (I tested this by reversing the logic
in the #ifdef).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228629 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Hashing.h
unittests/ADT/HashingTest.cpp