forked from OSchip/llvm-project
Constify Comparison
Make ConstantInt::uge() const so it may be used in const contexts. llvm-svn: 138579
This commit is contained in:
parent
9c286cce2e
commit
6e913571a2
|
@ -203,7 +203,7 @@ public:
|
|||
/// value.
|
||||
/// @returns true iff this constant is greater or equal to the given number.
|
||||
/// @brief Determine if the value is greater or equal to the given number.
|
||||
bool uge(uint64_t Num) {
|
||||
bool uge(uint64_t Num) const {
|
||||
return Val.getActiveBits() > 64 || Val.getZExtValue() >= Num;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue