Don't use gcc 4.8 workaround in the hash test with clang

This is unnecessary and just results in a warning about an unknown attribute
when building with clang.
This commit is contained in:
Vadim Zeitlin 2017-03-11 03:37:07 +01:00
parent 7a2df9534c
commit 9910013c23

View File

@ -377,7 +377,7 @@ void MakeKeyValuePair(size_t i, size_t count, T*& key, ValueT& value)
// the test
template <class HashMapT>
void
#ifdef __GNUC__
#if defined(__GNUC__) && !defined(__clang__)
// At least g++ 4.8.2 (included in Ubuntu 14.04) is known to miscompile the
// code in this function and make all the loops below infinite when using -O2,
// so we need to turn off optimizations for it to allow the tests to run at