Changes in directory llvm/include/llvm/ADT:
APInt.h updated: 1.66 -> 1.67 --- Log message: remove useless type qualifiers --- Diffs of the changes: (+2 -2) APInt.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/include/llvm/ADT/APInt.h diff -u llvm/include/llvm/ADT/APInt.h:1.66 llvm/include/llvm/ADT/APInt.h:1.67 --- llvm/include/llvm/ADT/APInt.h:1.66 Fri Apr 13 14:19:07 2007 +++ llvm/include/llvm/ADT/APInt.h Thu May 3 12:09:36 2007 @@ -1038,13 +1038,13 @@ /// @returns true if the argument APInt value is a sequence of ones /// starting at the least significant bit with the remainder zero. -inline const bool isMask(uint32_t numBits, const APInt& APIVal) { +inline bool isMask(uint32_t numBits, const APInt& APIVal) { return APIVal.getBoolValue() && ((APIVal + APInt(numBits,1)) & APIVal) == 0; } /// @returns true if the argument APInt value contains a sequence of ones /// with the remainder zero. -inline const bool isShiftedMask(uint32_t numBits, const APInt& APIVal) { +inline bool isShiftedMask(uint32_t numBits, const APInt& APIVal) { return isMask(numBits, (APIVal - APInt(numBits,1)) | APIVal); } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits