summaryrefslogtreecommitdiff
path: root/include/llvm/Support/MathExtras.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-05-24 19:21:13 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-05-24 19:21:13 +0000
commit19b7e0e0cabfa6dfc559c64e3d6ed053832c4047 (patch)
tree79b2611d6dfc345798b274934fd99127b12e71dc /include/llvm/Support/MathExtras.h
parent077b38720772de4b87d5855a399d95b7dbd5b278 (diff)
downloadllvm-19b7e0e0cabfa6dfc559c64e3d6ed053832c4047.tar.gz
llvm-19b7e0e0cabfa6dfc559c64e3d6ed053832c4047.tar.bz2
llvm-19b7e0e0cabfa6dfc559c64e3d6ed053832c4047.tar.xz
For PR786:
Minor tweaks in public headers and a few .cpp files so that LLVM can build successfully with -pedantic and projects using LLVM with -pedantic don't get warnings from LLVM. There's still more -pedantic warnings to fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28453 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/MathExtras.h')
-rw-r--r--include/llvm/Support/MathExtras.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h
index 65f6ed3f75..ed21bb0526 100644
--- a/include/llvm/Support/MathExtras.h
+++ b/include/llvm/Support/MathExtras.h
@@ -76,7 +76,7 @@ inline bool isPowerOf2_32(unsigned Value) {
// isPowerOf2_64 - This function returns true if the argument is a power of two
// > 0 (64 bit edition.)
inline bool isPowerOf2_64(uint64_t Value) {
- return Value && !(Value & (Value - 1LL));
+ return Value && !(Value & (Value - int64_t(1L)));
}
// ByteSwap_16 - This function returns a byte-swapped representation of the