summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-03 17:09:36 +0000
committerChris Lattner <sabre@nondot.org>2007-05-03 17:09:36 +0000
commitb86da5adbcdf7c1215fe71482b31e74044fa1e70 (patch)
treed8ebee187d0feb2d12d5e4f14ba8a9ce9d887501
parentd0803d2e4e67c777c7750845d9f4b55a4b08ff7a (diff)
downloadbcm5719-llvm-b86da5adbcdf7c1215fe71482b31e74044fa1e70.tar.gz
bcm5719-llvm-b86da5adbcdf7c1215fe71482b31e74044fa1e70.zip
remove useless type qualifiers
llvm-svn: 36676
-rw-r--r--llvm/include/llvm/ADT/APInt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h
index e232550fdf1..36ced6f6dda 100644
--- a/llvm/include/llvm/ADT/APInt.h
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud