diff options
-rw-r--r-- | llvm/include/llvm/Support/MathExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/MathExtras.h b/llvm/include/llvm/Support/MathExtras.h index 42e92203ef9..806fc350979 100644 --- a/llvm/include/llvm/Support/MathExtras.h +++ b/llvm/include/llvm/Support/MathExtras.h @@ -300,7 +300,7 @@ inline bool isShiftedInt(int64_t x) { template <unsigned N> inline typename std::enable_if<(N < 64), bool>::type isUInt(uint64_t X) { static_assert(N > 0, "isUInt<0> doesn't make sense"); - return X < (UINT64_C(1) << N); + return X < (UINT64_C(1) << (N)); } template <unsigned N> inline typename std::enable_if<N >= 64, bool>::type isUInt(uint64_t X) { |