aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-26 07:45:40 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-26 07:45:40 +0000
commitebf4ebd69155ea46c7937aec25df1f50dd61c136 (patch)
tree032fb2dd335bcfc0c7d4e6f317d1400d0fe329ae
parent47fbe9e00cebf2c18e9d967f308de142db4afc67 (diff)
downloadexternal_llvm-ebf4ebd69155ea46c7937aec25df1f50dd61c136.zip
external_llvm-ebf4ebd69155ea46c7937aec25df1f50dd61c136.tar.gz
external_llvm-ebf4ebd69155ea46c7937aec25df1f50dd61c136.tar.bz2
Make isNegative() a const function since it doesn't modify the APInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34630 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/APInt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h
index 489675d..a22ed82 100644
--- a/include/llvm/ADT/APInt.h
+++ b/include/llvm/ADT/APInt.h
@@ -355,7 +355,7 @@ public:
/// This just tests the high bit of this APInt to determine if it is negative.
/// @returns true if this APInt is negative, false otherwise
/// @brief Determine sign of this APInt.
- bool isNegative() {
+ bool isNegative() const {
return (*this)[BitWidth - 1];
}