projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba57f02
)
Get rid of VS2015 operator precedence warning. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Tue, 19 Jul 2016 12:26:51 +0000
(12:26 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Tue, 19 Jul 2016 12:26:51 +0000
(12:26 +0000)
llvm-svn: 275971
llvm/include/llvm/Support/MathExtras.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/Support/MathExtras.h
b/llvm/include/llvm/Support/MathExtras.h
index
42e9220
..
806fc35
100644
(file)
--- 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) {