mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Constify Comparison
Make ConstantInt::uge() const so it may be used in const contexts. llvm-svn: 138579
This commit is contained in:
parent
d387b48b0b
commit
4cca5f784a
@ -203,7 +203,7 @@ public:
|
|||||||
/// value.
|
/// value.
|
||||||
/// @returns true iff this constant is greater or equal to the given number.
|
/// @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.
|
/// @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;
|
return Val.getActiveBits() > 64 || Val.getZExtValue() >= Num;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user