It doesn't seem to like instantiating the isUInt<unsigned N> template
with 6+3, and then doing <<N.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173507
91177308-0d34-0410-b5e6-
96231b3b80d8
/// isUInt - Checks if an unsigned integer fits into the given bit width.
template<unsigned N>
inline bool isUInt(uint64_t x) {
- return N >= 64 || x < (UINT64_C(1)<<N);
+ return N >= 64 || x < (UINT64_C(1)<<(N));
}
// Template specializations to get better code for common cases.
template<>