diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-03 17:09:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-03 17:09:36 +0000 |
commit | 49e1580214cd0b9e8d00b29f11f62fe9070a2a9c (patch) | |
tree | 38400921f75ae1212278311d2726ce0be759ed46 | |
parent | f5092531800876417b689ef47a80d7b705d8fdee (diff) |
remove useless type qualifiers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36676 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/APInt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index e232550fdf..36ced6f6dd 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -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); } |