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)
commit68312e19d87edc8bdcd49304a497aa75660e029a
tree1538f476eacf937074f39f7ad8265ef577b63261
parentd3023547157783f6370cb9c8b39f0232ff1a4ced
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).

llvm-svn: 228629
llvm/include/llvm/ADT/Hashing.h
llvm/unittests/ADT/HashingTest.cpp