diff options
-rw-r--r-- | include/llvm/ADT/APInt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index c1557ec753..b8b1687def 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -272,6 +272,9 @@ public: /// @returns true if the argument APInt value is a power of two > 0. bool isPowerOf2() const; + /// isSignBit - Return true if this is the value returned by getSignBit. + bool isSignBit() const { return isMinSignedValue(); } + /// This converts the APInt to a boolean value as a test against zero. /// @brief Boolean conversion function. inline bool getBoolValue() const { |