aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/APInt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ADT/APInt.h')
-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];
}