llvm.org GIT mirror llvm / 66f1f30
Add parens to suppress an MSVC 2012 << precedence warning 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 Reid Kleckner 7 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6464 /// isUInt - Checks if an unsigned integer fits into the given bit width.
6565 template
6666 inline bool isUInt(uint64_t x) {
67 return N >= 64 || x < (UINT64_C(1)<<N);
67 return N >= 64 || x < (UINT64_C(1)<<(N));
6868 }
6969 // Template specializations to get better code for common cases.
7070 template<>