Changes in directory llvm/include/llvm/Support:
MathExtras.h updated: 1.29 -> 1.30 SlowOperationInformer.h updated: 1.5 -> 1.6 --- Log message: For PR786: http://llvm.cs.uiuc.edu/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. --- Diffs of the changes: (+2 -2) MathExtras.h | 2 +- SlowOperationInformer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/include/llvm/Support/MathExtras.h diff -u llvm/include/llvm/Support/MathExtras.h:1.29 llvm/include/llvm/Support/MathExtras.h:1.30 --- llvm/include/llvm/Support/MathExtras.h:1.29 Fri Jan 13 20:17:20 2006 +++ llvm/include/llvm/Support/MathExtras.h Wed May 24 14:21:13 2006 @@ -76,7 +76,7 @@ // 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 Index: llvm/include/llvm/Support/SlowOperationInformer.h diff -u llvm/include/llvm/Support/SlowOperationInformer.h:1.5 llvm/include/llvm/Support/SlowOperationInformer.h:1.6 --- llvm/include/llvm/Support/SlowOperationInformer.h:1.5 Thu Apr 21 15:44:59 2005 +++ llvm/include/llvm/Support/SlowOperationInformer.h Wed May 24 14:21:13 2006 @@ -57,7 +57,7 @@ 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 _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits