remove useless type qualifiers
authorChris Lattner <sabre@nondot.org>
Thu, 3 May 2007 17:09:36 +0000 (17:09 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 3 May 2007 17:09:36 +0000 (17:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36676 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/APInt.h

index e232550fdf1d9909095e0fd8e9e0665abf86d848..36ced6f6dda1d52a14613737f7e43f643fd154d8 100644 (file)
@@ -1038,13 +1038,13 @@ inline bool isIntN(uint32_t N, const APInt& APIVal) {
 
 /// @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);
 }