diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-05-24 19:21:13 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-05-24 19:21:13 +0000 |
commit | 19b7e0e0cabfa6dfc559c64e3d6ed053832c4047 (patch) | |
tree | 79b2611d6dfc345798b274934fd99127b12e71dc /include/llvm/Support | |
parent | 077b38720772de4b87d5855a399d95b7dbd5b278 (diff) | |
download | external_llvm-19b7e0e0cabfa6dfc559c64e3d6ed053832c4047.zip external_llvm-19b7e0e0cabfa6dfc559c64e3d6ed053832c4047.tar.gz external_llvm-19b7e0e0cabfa6dfc559c64e3d6ed053832c4047.tar.bz2 |
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')
-rw-r--r-- | include/llvm/Support/MathExtras.h | 2 | ||||
-rw-r--r-- | include/llvm/Support/SlowOperationInformer.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index 65f6ed3..ed21bb0 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 diff --git a/include/llvm/Support/SlowOperationInformer.h b/include/llvm/Support/SlowOperationInformer.h index 0486406..80ece41 100644 --- a/include/llvm/Support/SlowOperationInformer.h +++ b/include/llvm/Support/SlowOperationInformer.h @@ -57,7 +57,7 @@ namespace llvm { void progress(unsigned Current, unsigned Maximum) { assert(Maximum != 0 && "Shouldn't be doing work if there is nothing to do!"); - progress(Current*1000ULL/Maximum); + progress(Current*uint64_t(1000UL)/Maximum); } }; } // end namespace llvm |