forked from OSchip/llvm-project
Make isNegative() a const function since it doesn't modify the APInt.
llvm-svn: 34630
This commit is contained in:
parent
aa8dcfe441
commit
862ee00550
|
@ -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…
Reference in New Issue