mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
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
This commit is contained in:
parent
47fbe9e00c
commit
ebf4ebd691
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user