/// 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];
}