Index: llvm/include/llvm/ADT/DenseMapInfo.h =================================================================== --- llvm/include/llvm/ADT/DenseMapInfo.h +++ llvm/include/llvm/ADT/DenseMapInfo.h @@ -259,6 +259,7 @@ template static unsigned getHashValueImpl(const Tuple &values, std::true_type) { + (void)values; return 0; } @@ -269,6 +270,7 @@ template static bool isEqualImpl(const Tuple &lhs, const Tuple &rhs, std::false_type) { + (void)rhs; using EltType = typename std::tuple_element::type; std::integral_constant atEnd; return DenseMapInfo::isEqual(std::get(lhs), std::get(rhs)) && @@ -277,6 +279,7 @@ template static bool isEqualImpl(const Tuple &lhs, const Tuple &rhs, std::true_type) { + (void)lhs; return true; } Index: llvm/include/llvm/ADT/Hashing.h =================================================================== --- llvm/include/llvm/ADT/Hashing.h +++ llvm/include/llvm/ADT/Hashing.h @@ -657,6 +657,7 @@ template hash_code hash_value_tuple_helper(const std::tuple &arg, std::index_sequence indices) { + (void)indices; return hash_combine(std::get(arg)...); } Index: llvm/include/llvm/ADT/Optional.h =================================================================== --- llvm/include/llvm/ADT/Optional.h +++ llvm/include/llvm/ADT/Optional.h @@ -382,6 +382,7 @@ } template constexpr bool operator<(const Optional &X, NoneType) { + (void)X; return false; } Index: llvm/include/llvm/Support/MathExtras.h =================================================================== --- llvm/include/llvm/Support/MathExtras.h +++ llvm/include/llvm/Support/MathExtras.h @@ -399,6 +399,7 @@ } template constexpr inline std::enable_if_t= 64, bool> isUInt(uint64_t X) { + (void)X; return true; }